Forum Moderators: phranque
ex:
username: John -> first letter is "J"
URL: [mysite.com...] (nasty URL!)
what I want to do is shorten the url to something like this:
ex:
username: John
URL: [mysite.com...] (Much better URL)
In a previous post, our fellow member Sekka stated that I should do something like the following to fix this:
RewriteEngine on
RewriteCond %{REQUEST_URI} ^/user/
RewriteCond %{SCRIPT_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ userpage.php [L,QSA]
However, after trying this several times with my .htaccess (located at root folder), I had no success.
Can somebody please show me how to implement the above URL re-writes. Thanks much!