Forum Moderators: phranque

Message Too Old, No Replies

RewriteRule is redirecting

         

SamTeeeee

5:21 pm on Feb 9, 2011 (gmt 0)

10+ Year Member



Hi guys, this RewriteRule is redirecting me to /cfd/page.php instead of keeping me on /cfd/page.html and Rewriting.


RewriteBase /cfd/
RewriteRule ^cfd/(.*)\.html$ /cfd/$1.php [NC,QSA]


Any ideas please?

Thanks
Sam

g1smd

6:14 pm on Feb 9, 2011 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



This rule is not redirecting, it's a rewrite.

Ensure that any and all external redirects are listed before any rewrites.

If there is a redirect after an internal rewrite, the internal server path is exposed in the redirect.

The
[L]
flag is needed on every RewriteRule too.

SamTeeeee

3:22 pm on Feb 11, 2011 (gmt 0)

10+ Year Member



Cool thanks for your help.