Jump to content

Skip flag not working


Jak

Recommended Posts

Hi,

Can someone help me out with this, I dont know why it's not working:

 

RewriteRule ^admin(/|$) admin.php [QSA,S=1]
RewriteRule ^.*$ index.php [QSA,L]

 

/test should go to /index.php

/admin should go to /admin.php

/admin/test should go to /admin.php

 

If I comment out the second rule the first rule is matching the second two examples correctly, but the request still ends up at index.php, basically the skip flag isn't working.

 

Any ideas?

Thanks,

Jack

Link to comment
https://forums.phpfreaks.com/topic/132818-skip-flag-not-working/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.