Page 1 of 1
php question
Posted: Sat Feb 16, 2008 3:34 pm
by b2k
Hi,
Ok, was seeing in some website people have page like this..
Title of the page: WebAPP, name whatever
http://www.mypage.com/webapp.php?=1
and i don't know how they change to this
http://www.mypage.com/webapp/namewhatever
How i can do this?
Re: php question
Posted: Sat Feb 16, 2008 4:05 pm
by Christopher
I think you mean "clean URLs". You can create directories and put index.php scripts within the directories, or you can use mod_rewrite.
Re: php question
Posted: Sat Feb 16, 2008 4:34 pm
by s.dot
You're looking for a request router/mapper (which can be done entirely in php) or you can use mod_rewrite rules in a .htaccess file if you're using apache web server (probably the easier of the two routes).
Re: php question
Posted: Sat Feb 16, 2008 6:51 pm
by b2k
scottayy wrote:You're looking for a request router/mapper (which can be done entirely in php) or you can use mod_rewrite rules in a .htaccess file if you're using apache web server (probably the easier of the two routes).
Thanks, now im begin to understand..
Can you give me some examples?