Quote:
Originally Posted by nico_swd
I've checked your site a bit, and there are some users with weird usernames that could cause errors. This here should work with most of them.
Code:
RewriteEngine on
RewriteRule ^(.*)/$ user.php?username=$1
RewriteRule ^(.*)/friends(/)?$ user.php?username=$1&display=friends
RewriteRule ^(.*)/syndications(/)?$ user.php?username=$1&display=syndications
RewriteRule ^(.*)/([0-9]+)$ user.php?username=$1&e=$2
It would be easier and safer if you could use the userids instead of the usernames. If a user has for example a * in his username it will cause an error, and I'm not sure if there's a way around that.
The code above also requires a slash at the end when calling /journals/sabret00the/. I couldn't get it to work without.
|
what i'll do is, i'll get users to change their usernames, it seems the best bet. thanks for your help, i really appreciate that.