Forum Moderators: coopster

Message Too Old, No Replies

Converting dynamic php link containing numbers to one with keywords?

         

markm455

10:13 pm on Oct 24, 2005 (gmt 0)

10+ Year Member



Hello,

I am trying to figure out how to convert my php site links from this (example using golf balls)

www.mysite.com/items/index2.php?item_id=10&

to

www.mysite.com/items/nike-golf-balls.php <--(or .html)

I am sure there is a post in here somewhere but I am getting cross eyed!

Thanks for any help

-Mark

skinter

12:24 am on Oct 25, 2005 (gmt 0)

10+ Year Member



I'm not sure about the custom name part, but Apache's htaccess file can do that for you. An example would be:
www.example.com/weblog/index.php?y=2000&m=11&d=23&id=5678
www.example.com/weblog/archive/00005678.html

Search Google for keywords including 'htaccess' 'clean URL's' and 'mod_rewrite'.

[edited by: coopster at 1:47 am (utc) on Oct. 25, 2005]
[edit reason] removed ulr per TOS [webmasterworld.com] [/edit]