RewriteEngine on
# is not a directory
RewriteRule %{REQUEST_FILENAME} !-d
# the A-Z is being caught by the NC flag (compiles the regEx case-intensive)
RewriteRule ^([a-z_-]+)/?$ /index.php?aff=$1 [NC,L]
RewriteEngine on
# is not a directory
RewriteRule %{REQUEST_FILENAME} !-d
# the A-Z is being caught by the NC flag (compiles the regEx case-intensive)
RewriteRule ^([a-z0-9_-]+)/?$ /index.php?aff=$1 [NC,L]
Options +FollowSymLinks
RewriteEngine On
# If it's not a request to an existing file
RewriteCond %{SCRIPT_FILENAME} !-f
# or directory
RewriteCond %{SCRIPT_FILENAME} !-d
# rewrite /$1/ to /index.php?aff=$1
RewriteRule ^([^/]+)/?$ /index.php?aff=$1 [QSA,L]