What does it do?
It produces a short profile url like so: yourdomain.com/username
Do you guarantee it will work on my server?
No.
Will you support this if I cannot get it to work for me?
I cannot guarantee this will work for everyone and therefor I will not support this.
Will this work with usernames that have special characters or spaces in them?
I don't know. I have only tested it on my test forum with a few usernames that don't have special characters or spaces in them. If it works for you, please let others know.
How can I tell my members about the shorter profile url?
That is something you will need to figure out.
Or view my update post here to show it in their profiles: https://vborg.vbsupport.ru/showthrea...46#post1435246
If this does not work for me, can you suggest another one?
VBseo
Zoints
Nuhit.com
Insert the following code in your .htaccess file (You might want to read the whole thread for other code examples that might work best for you):
Code:
RewriteEngine on
RewriteRule ^/?([a-zA-Z0-9]+)$ member.php?username=$1 [L]
This is great. I would like to add that you may want to remove the "/" from the .htaccess mod_rewrite. That will allow users who have their forums in another directory to use this. Because if I were to put the .htaccess in my /forum/ directory, and I went to "www.w.xyz/forum/username", it would most likely give me a 404, saying that "www.w.xys/member.php" does not exist. Thanks for the modification.
This is great. I would like to add that you may want to remove the "/" from the .htaccess mod_rewrite. That will allow users who have their forums in another directory to use this. Because if I were to put the .htaccess in my /forum/ directory, and I went to "www.w.xyz/forum/username", it would most likely give me a 404, saying that "www.w.xys/member.php" does not exist. Thanks for the modification.
Thank you. I've updated the code to reflect your suggestion and another change I found on the Apache site.
hello
thanks for the mod
but the thing is that i am not knowing how and where to put that code...so could you please give us a brief explanation
thanks again
Place the code provided into your .htaccess file. If you do not have that file in the root of your forum, here is how to create one:
Quote:
Originally Posted by http://www.htmlite.com/HTA003.php
You don't need any special program or hardware to create an htaccess file. In fact, all you need is a regular, simple text editor such as Notepad.
Now the tricky part is saving the file. The htaccess file is a no-name filename with an eight letter extension.
".htaccess"
When you save files in a text editor, it will usually add a default extension to files, so you might end up with...
".htaccess.txt"
Here is how you fix this problem :
File
Save As...
In the FILE TYPE box, choose ALL FILES
In the FILE NAME box, type in ".htaccess"
And be sure you used quotes around the filename when you typed it in.
If that doesn't work, your FTP program should let you do a RENAME on a file to make it right.
--------------- Added [DATE]1198525319[/DATE] at [TIME]1198525319[/TIME] ---------------