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