Page 1 of 1

How to make user friendly URLs?

Posted: Tue Dec 28, 2010 11:49 pm
by Abosya
Hi guys,

I am trying to use URLs that look like this site.com/john.smith instead of looking like this site.com/?username=john.smith. I want my URLs to be user friendly and intuitive and don't know where to start.

Thanks in advance for your help!

Ab.

Re: How to make user friendly URLs?

Posted: Wed Dec 29, 2010 2:45 am
by Apollo
Use mod_rewrite (.htaccess) to redirect any request to a single php file. Then in php, call the actual php script or generate output as needed.