ExpressionEngine CMS
Open, Free, Amazing

Thread

This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.

The active forums are here.

301 Redirects stopped working

December 16, 2010 7:06pm

Subscribe [1]
  • #1 / Dec 16, 2010 7:06pm

    rokker

    179 posts

    hey everybody!

    i first bought EE to redevelop my magazine’s website and get away from the old CMS (Siteworks Pro) that i had been using.

    i ported many of the old articles into EE, which gave me much nicer URL’s.

    i then wrote an .htaccess file to 301 redirect the old articles to their new EE home as i didn’t want to loose the rankings/traffic that went to the old ones.

    the 301 redirects i wrote worked flawlessly.

    then i wanted to use some plugins, but they were PHP5, and found my host was still on PHP4.x

    i persuaded them to upgrade, and they did. everything was perfect.

    i’m not sure if “that” is what caused this, but it was shortly after that i noticed my 301 redirects were now “not” functioning or redirecting at all, and all traffic to those old articles were back to seeing the old siteworks pages. those pages are also dynamic and not static pages with fixed URL’s.

    here is the code i’m using that was working fine. there are two kinds in my htaccess. the first, the more static still work, but the ones with the query are not working.

    here is a full link to the article that is not redirecting in the code below

    <a href="http://www.maximumink.com//articles.php?articleId=547">http://www.maximumink.com//articles.php?articleId=547</a>
    RewriteEngine on
    
    Redirect 301 /motherfools/index.htm <a href="http://www.maximumink.com/index.php/calendar/permalink/mother_fools_coffee_house">http://www.maximumink.com/index.php/calendar/permalink/mother_fools_coffee_house</a>
    
    RewriteCond %{QUERY_STRING} articleId=547
    RewriteRule ^\articles.php$ <a href="http://www.maximumink.com/index.php/reviews/show_review_permalink/chimaira_photos_by_phil_hunt">http://www.maximumink.com/index.php/reviews/show_review_permalink/chimaira_photos_by_phil_hunt</a>? [R=301]

    any clues?

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases