|
Need help in one of .htaccess commands
I want the user to could see the url of his profile page of the site in this way "http://www.mysite/username"
rather than
"http://www.mysite/profile.php?id="
and for that I used this command in .htaccess :
RewriteEngine On
RewriteRule ^([^/]*)\.$ /profile.php?id=$1&n=$a [L]
but the problem with this is I have to add "." in the end of the username to be like this :
"http://www.mysite/username."
and I want it to be like this without the "." :
"http://www.mysite/username"
hope if any one can help
|