Jump to content

Custom Url: Change Post.php?id=12 To Post/title-Goes-Here


Lambneck

Recommended Posts

Hi,

I am trying to make my dynamic urls more attractive/memorable by using the associated blog entry's title instead of the unique id passed in the url.

 

Currently the address looks something like the following:

 

www.example.com/post.php?id=5

 

What I want it to look like is:

 

www.example.com/title-of-article-goes-here

 

Does anyone know a simple way to do this?

Thanks in advance.

Ok thank you very much!" Clean URLs", now i got the nomenclature and now I have some functions that strip special characters but how do I acctually get the title into the url instead of the unique id and is there a clever way to still retain uniqueness of the url?

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.