PDA

View Full Version : mod_rewrite 3.5 for members


croportal
11-24-2005, 09:40 PM
how can i change link for members

i dont want to have this http://www.croportal.net/forum/member.php?u=4808

i want to have this http://www.croportal.net/forum/member/michele

no one know that

Nakor
11-29-2005, 10:49 AM
Create a .htaccess file in your forum directory and put the following in it;

Options +FollowSymLinks
RewriteEngine on

RewriteRule ^member/(.*)$ member.php?username=$1

croportal
11-29-2005, 10:50 AM
only this i do, and that is it

it doesnt working i have copy paste that in my forum directory in .htacces and users are still in php?u=786

this is how look my .htacees

RewriteEngine On
RewriteRule ^f([0-9]+)-([A-Za-z0-9\-]+)\.html$ forumdisplay.php?f=$1 [L]
RewriteRule ^t([0-9]+)(((-p)([0-9]+))?)([A-Za-z0-9\-]+)\.html$ showthread.php?t=$1&page=$5&pp=10 [L]

Options +FollowSymLinks
RewriteRule ^$ index.php
RewriteRule (^[-_A-Za-z0-9\ ]*$) userpage.php?do=main&username=$1

Options +FollowSymLinks
RewriteEngine on

RewriteRule ^member/(.*)$ member.php?username=$1



and doesnt working

Nakor
12-01-2005, 09:43 AM
You also need to update the template files to link to the new address.
Just do a mass replace of your template files and replace all member.php?u=id with member/username. This would require you to go through each template file and make the change, make sure you are careful when doing it and replace all the right variables.

If you are not confident with the workings of vBulletin I wouldn't recommend doing this without someone helping.

croportal
12-01-2005, 04:04 PM
I DONT know that, i will not useb because i dont want blow up something