Jump to content

url titles


gvp16

Recommended Posts

Hi, im looking to make the URLs for pages more seo friendly, i currently have something like this

 

www.mysite.com/content/index.php?page=56543

 

and would like to make it look like this:

 

www.mysite.com/content/56543/this_is_todays_news

 

So the title of the page/article/information is in the url.

 

Ive seen it done before and cant quite figure out how its done.

 

Im looking for a nudge in the right direction.

 

Thanks.

Link to comment
Share on other sites

Hi, thanks for the quick reply, im guessing its not as simple as just putting that code into the htaccess.

 

im new to htacess so im not really sure what im doing, but im guessing that I have to set up my links slightly different and then that code rewrites them to make them look better?

Link to comment
Share on other sites

thanks for that,  ive got it working where  www.mysite.com/page/about  goes to  www.mysite.com/index.php?page=about

 

but how i do it when a real directory is involved? eg  www.mysite.com/content/5 would go to www.mysite.com/content/index.php?id=5

Link to comment
Share on other sites

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.