View Single Post
Old 03-04-2008, 02:54 AM   #4 (permalink)
Dan
The Wanderer
 
Dan's Avatar
 
Join Date: Dec 2007
Location: England
Posts: 15
Thanks: 6
Dan is on a distinguished road
Default

Code:
RewriteRule ^sample/(.*)/ http://$1.domain.com [R=301,L]
RewriteRule ^sample/(.*) http://$1.domain.com [R=301,L]
I've had to use two lines to get it redirecting with a trialing slash and not.

So domain.com/sample/page and domain.com/sample/page/ both redirect to the same page.

Is there anyway to merge those two lines?
Dan is offline  
Reply With Quote