Forum Moderators: phranque

Message Too Old, No Replies

Need help modifying a working mod rewrite

I need it to support emails

         

formasfunction

6:42 pm on Sep 27, 2007 (gmt 0)

10+ Year Member



I currently have the following rewrite working on my machine:


RewriteRule ^([^/\.]+)/([^/\.]+)/?$ $2.php?user=$1 [L]

I want to modify it so that the first pattern could be an email address. Right now it's tossing an error which I'm sure is due to either the "@" or the "." I'm just not all that good with regex

formasfunction

7:44 pm on Sep 27, 2007 (gmt 0)

10+ Year Member



Nevermind, got it working. I just needed to take out the exclusion of the period:


RewriteRule ^([^/]+)/([^/\.]+)/?$ $2.php?user=$1 [L]