I need to map all requests arriving at the server as follows:
exemplo.com/joao => exemplo.com/index.pl?u=joao
exemplo.com/joao/ => exemplo.com/index.pl?u=joao
My /var/www/.htaccess
file is so far:
RewriteEngine On
RewriteRule ^([a-zA-Z0-9\_\-]+)\/?$ index.pl?u=$1
In normal cases, the rule works. But it fails in case the /var/www/joao
directory exists.
I need the URL to be transformed even though the joao
directory exists. Anyone have any ideas?