![]() |
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 |
With .htaccess.
Code:
RewriteEngine on |
Thanks Nico, i really really really appreciate that.
|
No problem. You might want to add an underscore to the pattern if these are allowed in usernames.
Code:
-_A-Za-z0-9 |
how would you take care of special characters and/or other language chars via .hta ?
thanks. |
I don't think I understand what you're trying to do.
|
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 |
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 |
very interesting. I can imagine the value for this in increasing security. Thanks!
|
Not only security. Google will love it too. :D
|
All times are GMT. The time now is 06:01 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:
|