Go Back   CodingForums.com > :: Server side development > PHP

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 01-26-2013, 11:40 PM   PM User | #1
spartacusgalact
New to the CF scene

 
Join Date: Jan 2013
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
spartacusgalact is an unknown quantity at this point
redirecting news for SEO

Google is indexing my news articles as:

https://www.site.com/news/id5-

instead of:

https://www.site.com/news/id5-Steroid-users-increasing-year-on-year

The server finds content well using both options but for SEO reasons i want to force all users to use the long address.

I'm looking for someone to write the code i need to add to my .htaccess file in root to achieve this. I've tried to do this myself without luck

All news articles follow this format: site.com/news/id#-title. The title may contain non-url characters like :'? etc but these are mostly removed.

Note sure if this will help but codeignigter framework is used

hope you can help
spartacusgalact is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 06:08 AM.


Advertisement
Log in to turn off these ads.