Forum Moderators: phranque

Message Too Old, No Replies

mod_reqrite and P flag

works from httpd.conf but not from .htaccess

         

cantwont

5:03 pm on Jun 23, 2005 (gmt 0)

10+ Year Member



I have the following condition in httpd.conf (under the virtual server section)

RewriteRule ^/check$ http://example.com/adv_check [P]

that works as expected. However, if I move that line to the .htaccess in the document root of the virtual server, it doesn't work

is there a restriction on the use of [P] in .htaccess files?

jd01

7:25 pm on Jun 23, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Hi cantwont,

Could you define 'doesn't work'?

Is there an error? If so, what error?

Did you remove the preceding / from the left side of the rule, which is required in the httpd file, but will cause the rule to fail in the .htaccess file?

Please, let us know exactly what is not working, and then maybe we can help you find an answer.

Justin