![]() |
URL rewrite for usernames/profiles
I think this should be quite easy but I haven't got a clue how to do it myself.
I want to use .htaccess so that people can type in something like mydomain.com/username in order to get to a profile, which would really be either mydomain.com/forum/member.php?u=123456 or mydomain.com/forum/member.php?username=username Can anyone help or at least point me in the right direction? ______________________________________________ Edit Note: this was not meant to be a double post :disappointed: I've sort of sussed something out but seem to have a problem when a trailing slash is left off My .htacess is as follows; RewriteEngine On RewriteRule (^[-_A-Za-z\ ]*$) forums/member.php?username=$1 However this brings up errors for all other folders under the domain (eg /gallery etc.) Is there a way to omit certain folder names? |
All times are GMT. The time now is 04:30 PM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|