friendly urls

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
stuffradio
Forum Newbie
Posts: 14
Joined: Tue Jan 03, 2006 2:33 am

friendly urls

Post by stuffradio »

Hey, how can I do this? I know what they are but want the simplest way to do it. I am writing a blog and the file will be something like
myblog.com/blog.php?uname=username so I want to turn that in to
myblog.com/username
User avatar
Christopher
Site Administrator
Posts: 13596
Joined: Wed Aug 25, 2004 7:54 pm
Location: New York, NY, US

Post by Christopher »

You should look into having the web server rewrite URLs. If you search the web you will find many tutorials about it as there are many difffernet types of rules and rewriting schemes.
(#10850)
foobar
Forum Regular
Posts: 613
Joined: Wed Sep 28, 2005 10:08 am

Post by foobar »

Do some searching for "htaccess" and "mod_rewrite". This will, however, only pertain to Apache, though.
If you want to have that for other servers, then you have to look into their request-wrapper functionality in their docs.
Post Reply