Apache Mod Rewrite with Periods in URL

Posted by Ben Althauser on Stack Overflow See other posts from Stack Overflow or by Ben Althauser
Published on 2012-12-07T05:44:23Z Indexed on 2012/12/09 11:08 UTC
Read the original article Hit count: 218

Filed under:
|
|

Ok,

so I am using (or trying to use) two primary mod_rewrite rules, and they seem to be conflicting with one another

RewriteRule ^/?help$ index.php?page=help [L]

and

RewriteRule ^/?([a-zA-Z0-9._-]+)$ index.php?user=$1 [L]

If I get rid of the period ->. in the second rule, my help page is displayed, and I can display a user page as well, but when I add the period, my help page doesn't display, but instead (I think) gets processed as a user page.

Anyone have any pointers?

© Stack Overflow or respective owner

Related posts about apache

Related posts about mod-rewrite