I've got the following .htaccess file...
------------------------------------------
RewriteEngine On
RewriteCond %{REQUEST_FILE} !/algemeen/
RewriteCond %{REQUEST_FILE} !/classes/
RewriteCond %{REQUEST_FILE} !/docs/
RewriteCond %{REQUEST_FILE} !/guestbook/
RewriteCond %{REQUEST_FILE} !/images/
RewriteCond %{REQUEST_FILE} !/kalender/
RewriteCond %{REQUEST_FILE} !/phpmyadmin/
RewriteCond %{REQUEST_FILE} !/popup/
RewriteCond %{REQUEST_FILE} !/save/
RewriteCond %{REQUEST_FILE} !/scripts/
RewriteCond %{REQUEST_FILE} !/test/
RewriteCond %{REQUEST_FILE} !/usage/
RewriteCond %{REQUEST_FILE} !/webalizer/
RewriteRule ^([^.]*)$ index.php?user=$1
------------------------------------------
the idea was to redirect www.domain.com/username to www.domain.com?index.php?user=username but exclude the existing dirs from being transformed.
Trouble is, it's not working...
when i go to /docs , it redirects to /docs/?user=docs
when i go to /docs/ , it shows the same result as /docs, but the address bar doesn't change.
Does anybody know how to make a rewrite rule to transform both /dir/ and /dir to ?user=dir , excluding the existing dirs from being transformed?