wkenny
01-29-2006, 11:34 PM
I use the following snippet in htaccesss to redirect all requests to pages not starting with www to the www. equivalent.
I would also like to be able to permanently redirect all request for pages which end in _02.htm to pages which end in _01.htm (e.g. e.g. page_02.htm should redirect to page_01.htm)
Can anybody tell me how to modify the snippet or add extra lines to achieve this?
Options +FollowSymlinks
RewriteEngine on
rewritecond %{http_host} ^estateagentsespana.com [nc]
rewriterule ^(.*)$ http://www.estateagentsespana.com/$1 [r=301,nc]
I would also like to be able to permanently redirect all request for pages which end in _02.htm to pages which end in _01.htm (e.g. e.g. page_02.htm should redirect to page_01.htm)
Can anybody tell me how to modify the snippet or add extra lines to achieve this?
Options +FollowSymlinks
RewriteEngine on
rewritecond %{http_host} ^estateagentsespana.com [nc]
rewriterule ^(.*)$ http://www.estateagentsespana.com/$1 [r=301,nc]