21282 Posts in 5730 Topics by 2601 members
|
Page:
1
|
Go to End | |
| Author | Topic: | 550 Views |
-
Rewrite old files

5 July 2010 at 10:04pm
Hi all.
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/
URL http://www.example.com/development.php => http://www.example.com/online/development/?url=development.php
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
-
Re: Rewrite old files

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.
-
Re: Rewrite old files

6 July 2010 at 7:20pm
I ought to have known better
Thanks, banal. Works fine with the L flag now
| 550 Views | ||
|
Page:
1
|
Go to Top |


