Jump to content

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.

You will have to configure your server to achieve this. Assuming you are using Apache, here is a tutorial I found on Google!

 

http://wettone.com/code/clean-urls

 

You can just search for "clean urls" if you want a different tutorial

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?

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.