03-04-2008, 02:54 AM
|
#4 (permalink)
|
|
The Wanderer
Join Date: Dec 2007
Location: England
Posts: 15
Thanks: 6
|
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?
|
|
|
|