I have this .htaccess file using mod_rewrite and I need to be able to write the correct regex... Here is my htaccess file...
Code: Select all
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^([a-z]+)/$ index.php?user=$1
RewriteRule ^([a-z]+)$ index.php?user=$1
</IfModule>
So my question is how can I make it accept numbers, dash or underscore and letters in Big caps.... Yes, I know next to zero about writing regular expressions...
The value sent is a user defined username, so it could be any combination of the ones i described above. The mod_rewrite works great so I just need help with getting the correct regex.
Many Thanks!!!