View Full Version : Little .htaccess
Yours Truly
04-17-2007, 03:27 PM
RewriteEngine On
RewriteRule ^$ index.php
RewriteRule (^[-_A-Za-z0-9\ ]*$) member.php?&username=$1
This is to make the username on vBulletin go www.example.com/username as apposed to the normal url.
I believe it needs to be edited to work on PHP5 but to be honest i don't really ahvea ny experience writing PHP5 so any help? :)
Dismounted
04-18-2007, 06:22 AM
htaccess (mod_rewrite) doesn't use PHP, therefore, it is not affected by PHP versions. mod_rewrite is an Apache addon.
TheRed
04-19-2007, 03:44 AM
As he said, you don't need to change anything on the php file to make the profile from being displayed. However you will need to do some changes if you want to have SEO links in that profile page.
Perhaps you could make use of the vBSeo (http://www.vbseo.com/635/) Software.
Yours Truly
04-19-2007, 07:59 AM
It didn't seem to want to work with my 3.5.8 any suggestions on that then?
Dismounted
04-19-2007, 09:11 AM
You need to specify a rewrite condition (RewriteCond) before you can specify a rule. I suggest you read up on mod_reqrite first.
Yours Truly
04-19-2007, 10:55 AM
You need to specify a rewrite condition (RewriteCond) before you can specify a rule. I suggest you read up on mod_reqrite first.
Ok thanks :)
Cap'n Steve
04-20-2007, 05:06 AM
You need to specify a rewrite condition (RewriteCond) before you can specify a rule. I suggest you read up on mod_reqrite first.
Are you sure about that? Yours Truly, what happens when you try to use this? Also, the second rule will cancel out the first, since it can match 0 times.
Yours Truly
04-20-2007, 08:38 AM
Well it used to work with 3.5.5 but not with 3.5.8
www.marmbi.com/Dan
Thats what happens
zardos
04-27-2007, 02:21 PM
Well it used to work with 3.5.5 but not with 3.5.8
www.marmbi.com/Dan
Thats what happens
Cant get this to worke on 3.6 why?
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.