Re: Creating User Friendly URLS

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux