#1
  1. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Aug 2013
    Posts
    1
    Rep Power
    0

    Urgent help - Redirect old URLs


    Hi,

    We got our website done by a local company and they made a mess, There were multiple URLs to a single page and Google Webmaster Tool popped errors, showing duplication in title tags.

    We immediately informed the company who did our website, They fixed the problem - created a unique url for each page, But now old urls won't work. Its been 3-4 days.

    We've been trying to use .htaccess to 301 redirect each old url to new url manually, but its not working.

    We're using the following .htaccess code

    Code:
    RewriteRule ^http://carsizzler.com/news-detail/001831090/Hindustan-Motors-Inaugurates-Mitsubishi-Range-Dealership-In-Haryana.html$ http://carsizzler.com/news-detail/00183/Hindustan-Motors-Inaugurates-Mitsubishi-Range-Dealership-In-Haryana.html [NC,R=301,L]
    But this doesn't seem to work. The redirection isn't working at all.

    Code:
    Old URL's
    http://carsizzler.com/news-detail/001831090/Hindustan-Motors-Inaugurates-Mitsubishi-Range-Dealership-In-Haryana.html
    http://carsizzler.com/news-detail/001837389/Hindustan-Motors-Inaugurates-Mitsubishi-Range-Dealership-In-Haryana.html
    
    New URL
    http://carsizzler.com/news-detail/00183/Hindustan-Motors-Inaugurates-Mitsubishi-Range-Dealership-In-Haryana.html
    Please help.
  2. #2
  3. Transforming Moderator
    Devshed Supreme Being (6500+ posts)

    Join Date
    Mar 2007
    Location
    Washington, USA
    Posts
    14,119
    Rep Power
    9398
    Redirect is easier to use.
    Code:
    Redirect permanent /news-detail/001831090/Hindustan-Motors-Inaugurates-Mitsubishi-Range-Dealership-In-Haryana.html http://carsizzler.com/news-detail/00183/Hindustan-Motors-Inaugurates-Mitsubishi-Range-Dealership-In-Haryana.html
    First URL is just the path, second is the full thing.

    Programmatically, the best thing is to make the pages know what their correct URLs are and then redirect if requested through something different.

IMN logo majestic logo threadwatch logo seochat tools logo