Can you help me with .htaccess and 301 redirects?
July 2, 2008 5:31 AM
Subscribe
I have a rewritecond which hands my seo friendly urls however im also trying to redirect some old pages to the new urls but the rewrite condition is screwing up the 301 redirect.
my htaccess is
RewriteEngine On
RewriteCond %{SCRIPT_FILENAME} !-f
RewriteCond %{SCRIPT_FILENAME} !-d
RewriteRule ^([^/]*) pagehandler.php?string=$1 [L]
Redirect 301 /view/facilities http://www.mysite.com/facilities
what is happening is if go to
http://www.mysite.com/view/facilities
im redirected to
http://www.mysite.com/facilities?string=view
rather than
http://www.mysite.com/facilities
posted by toocan to computers & internet (8 comments total)
1 user marked this as a favorite
posted by nev at 6:05 AM on July 2, 2008