I have the url http://midnighttempest.com/users/user.php?user=desbrina
and i'd like it so that members only have to type http://midnighttempest.com/users/desbrina
I've tried doing this mysql but i just get 404 errors
Desbrina;10892105 wrote:I have the url http://midnighttempest.com/users/user.php?user=desbrina and i'd like it so that members only have to type http://midnighttempest.com/users/desbrina I've tried doing this mysql but i just get 404 errors
Try this:
.htaccess
Options +FollowSymLinks RewriteEngine on RewriteRule user/(.)/(.)/$ /users/user.php?$1=$2
your link will be:
http://midnighttempest.com/user/user/desbrina/
i'd rather not have the user bit in there twice
Check out $_SERVER["REQUEST_URI"] which you can parse in php.