The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
fake dirs
how would i go about setting up fake directories?
i.e. http://www.ebslive.com/journals/user...me=sabret00the become www.ebslive.com/journals/sabret00the http://www.ebslive.com/journals/user...isplay=friends becomes www.ebslive.com/journals/sabret00the/friends http://www.ebslive.com/journals/user...y=syndications becomes http://www.ebslive.com/journals/sabr...e/syndications |
#2
|
||||
|
||||
With .htaccess.
Code:
RewriteEngine on RewriteRule ^([A-Za-z0-9]+)(/)?$ user.php?username=$1 RewriteRule ^([A-Za-z0-9]+)/friends(/)?$ user.php?username=$1&display=friends RewriteRule ^([A-Za-z0-9]+)/syndications(/)?$ user.php?username=$1&display=syndications |
#3
|
||||
|
||||
Thanks Nico, i really really really appreciate that.
|
#4
|
||||
|
||||
No problem. You might want to add an underscore to the pattern if these are allowed in usernames.
Code:
-_A-Za-z0-9 |
#5
|
||||
|
||||
how would you take care of special characters and/or other language chars via .hta ?
thanks. |
#6
|
||||
|
||||
I don't think I understand what you're trying to do.
|
#7
|
||||
|
||||
Nico, one more question, say if i have
http://www.ebslive.com/journals/user...et00the&e=5329 http://www.ebslive.com/journals/user...et00the&e=5330 http://www.ebslive.com/journals/user...et00the&e=5331 and i want to change that into http://www.ebslive.com/journals/sabret00the/e=5329 http://www.ebslive.com/journals/sabret00the/e=5330 http://www.ebslive.com/journals/sabret00the/e=5331 what would i do then? RewriteRule ^([A-Za-z0-9]+) e=$2 (/)?$ user.php?username=$1&e=$2 |
#8
|
||||
|
||||
Give this a try.
Code:
RewriteRule ^([A-Za-z0-9]+)/e=([0-9]+)$ user.php?username=$1&e=$2 You could take out the e= as well. This should do it. Code:
RewriteRule ^([A-Za-z0-9]+)/([0-9]+)$ user.php?username=$1&e=$2 |
#9
|
||||
|
||||
very interesting. I can imagine the value for this in increasing security. Thanks!
|
#10
|
||||
|
||||
Not only security. Google will love it too.
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|