Re: Creating User Friendly URLS

From: Date: Thu, 17 Aug 2006 15:28:47 +0000
Subject: Re: Creating User Friendly URLS
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-240807@lists.php.net to get a copy of this message
At 11:43 PM +0900 8/17/06, Dave M G wrote:
PHP List, My goal is to create user and search engine friendly URLs like: mysite.com/my_web_page_title Instead of: mysite.com/index.php?pageID=1
The "?" doesn't cut it for SE's.
I thought I could do this by simply making my link into: <a href="index.php/my_web_page_title">My Web Page Title</a> And then stripping out the "index.php", and using the remainder for both the URL and the database lookup.
Why not just place all your pages inside folders with the names you want and then link to the folders? For example: <a href="mysite.com/my_web_page_title">My Web Page Title</a> Where "my_web_page_title" is the name of a folder that contain an index.php that produces the page. tedd ps: This isn't a php thing, but rather basic html -- unless I'm not understanding what you want. -- ------- http://sperling.com http://ancientstones.com http://earthstones.com

« previous php.general (#240807) next »