Rewrite Engine problem [resolved]

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
User avatar
[UW] Jake
Forum Commoner
Posts: 25
Joined: Sun Jun 01, 2008 9:04 pm
Location: USA

Rewrite Engine problem [resolved]

Post by [UW] Jake »

I'm not even sure if this is the right place to ask. You know how on some web-sites for example the url might be:

http://www.mysite.com/user/register
or mysite.com/articles/jan/11056
or mysite.com/user/profile/~johndoe


How do I set something like this up? Particularly the user thing.. I want to have it so when someone goes to users.mysite.com/bob52 it actually goes to a php script which can know it wants to goto 'bob52'. Make sense? Thanks!
Last edited by [UW] Jake on Sat Jul 12, 2008 3:51 pm, edited 1 time in total.
User avatar
onion2k
Jedi Mod
Posts: 5263
Joined: Tue Dec 21, 2004 5:03 pm
Location: usrlab.com

Re: Using "folders" in URL?? (Really don't know)

Post by onion2k »

It's a technique called "url rewriting". If you use Apache then check out mod_rewrite.
User avatar
[UW] Jake
Forum Commoner
Posts: 25
Joined: Sun Jun 01, 2008 9:04 pm
Location: USA

Re: Using "folders" in URL?? (Really don't know)

Post by [UW] Jake »

Resolved
Post Reply