Forum Moderators: phranque

Message Too Old, No Replies

^test/ rewriterule

         

nick279

3:52 pm on Sep 12, 2008 (gmt 0)

10+ Year Member




RewriteRule ^test\/([a-z]+) test.php?stub=$1 [NC,L]


RewriteRule ^tes\/([a-z]+) test.php?stub=$1 [NC,L]

Is 'test' a reserved word as the second rewrite works fine (on my server) but not the first rewrite.

[edit]Just spent 30 minutes finding that out :([/edit]

jdMorgan

4:26 pm on Sep 12, 2008 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



It's not reserved by Apache to my knowledge, but it might be reserved by your host. They may Alias or rewrite it to a special directory for testing, or soemthing similar.

I have a /test subdirectory on my servers, and I rewrite to it and within it with no problems.

Jim

nick279

5:01 pm on Sep 12, 2008 (gmt 0)

10+ Year Member



Thanks Jim - I couldn't find any reference to it before I posted here (hence the post) so must be an Alias as you pointed out.