i've been playing with mod_rewrite to try and get a simple rewrite working but i'm missing something, and its not working.
i have a page that is users/?user=somename and i want it to just be /somename
the somename will be dynamic so it can't be hardcoded. Anybody out there done this before? I already have the following rewrite rules on to get rid of the use of .php file extension
Code: Select all
RewriteEngine on
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME}\.php -f
RewriteRule ^(.*)$ $1.php