21282 Posts in 5730 Topics by 2601 members
|Go to End|
5 July 2010 at 10:04pm
I launched the first two sites I made with SS last week. As on every relaunch I put some rewrites in the .htaccess file but SS rewrites them again hence they never get to my url.
Redirect permanent /development.php http://www.example.com/online/development/
I tried RewriteRule (.*)development\.php http://www.example.com/online/development/ [NC,R=301] as well but that results in an error 400.
Does anybody know how to rewrite my old files? Unfortunately redirect pages in SS are not helpful, because I can't type in development.php
Hope someone can help
5 July 2010 at 11:17pm
You should add the "L" flag (last) to your RewriteRule, eg. [R=301,NC,L] since that will prevent the execution of further rewrites if a match was found.
6 July 2010 at 7:20pm
I ought to have known better
Thanks, banal. Works fine with the L flag now
|Go to Top|