The Moz Q&A Forum

    • Forum
    • Questions
    • My Q&A
    • Users
    • Ask the Community

    Welcome to the Q&A Forum

    Browse the forum for helpful insights and fresh discussions about all things SEO.

    1. SEO and Digital Marketing Q&A Forum
    2. Categories
    3. Technical SEO Issues
    4. 301 redirect issues

    301 redirect issues

    Technical SEO Issues
    5 2 637
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as question
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • EclipseLegal
      EclipseLegal last edited by

      Hi all,

      I'm hoping someone will be able to help me with an extermley frustrating problem with 301 redirects in .htaccess.

      Basically I'm trying to redirect some old pages (from our old website) that stil rank to the new equivilent.

      For example -

      old url =

      www.domain.com/frames/news/company-news/news-reader.php?newsStoryID=395

      New

      www.domain.com/news/article-title

      I've tried the simple

      redirect 301 /frames/news/company-news/news-reader.php?newsStoryID=395 http://www.domain.com/news/article-title

      But this doesnt work. I've also tried -

      RewriteEngine on
      RewriteCond %{QUERY_STRING} ^newsStoryID=395$
      RewriteRule ^/news-reader.php$ http://www.domain.com/news/article-title/? [L,R=301]

      Could anyone help? I've followed lots of tutorials that all match the above but it just doesn't work! The only other thing within the htaccess file is from wordpress for pretty permalinks -

      BEGIN WordPress

      <ifmodule mod_rewrite.c="">RewriteEngine On
      RewriteBase /
      RewriteRule ^index.php$ - [L]
      RewriteCond %{REQUEST_FILENAME} !-f
      RewriteCond %{REQUEST_FILENAME} !-d
      RewriteRule . /index.php [L]</ifmodule>

      END WordPress

      Many thanks in advance!

      1 Reply Last reply Reply Quote 0
      • KeriMorgret
        KeriMorgret last edited by

        Not a direct answer to your question, but I personally use and like the Redirect plugin for Wordpress. Have you tried something like that? I'm not an htaccess expert, so can't help you out otherwise.

        EclipseLegal 1 Reply Last reply Reply Quote 1
        • EclipseLegal
          EclipseLegal @KeriMorgret last edited by

          Thanks for the reply. I've taken a look at the plugin (don't really like usings them and normally just write my own) but it doesn't look to be able to handle historical pages - from before the site was build in wordpress.

          KeriMorgret 1 Reply Last reply Reply Quote 0
          • KeriMorgret
            KeriMorgret @EclipseLegal last edited by

            My mistake, it's the Redirection plugin (http://wordpress.org/extend/plugins/redirection/), not Redirect. I use it on my site, and use it to redirect incoming links from another domain that's blanket 301ing to my site, and it was never on wordpress. There's an easy way to look at the 404s to your site and set up a redirect from the 404 page (handy if someone did a typo on a URL to you, accidentally added a period to the hyperlink, etc.)

            1 Reply Last reply Reply Quote 1
            • EclipseLegal
              EclipseLegal last edited by

              Thanks for the link, the plugin works a treat! Life saver.

              1 Reply Last reply Reply Quote 0
              • 1 / 1
              • First post
                Last post
              • Alternatives 301? Issues redirection of index.html page with Adobe Business Catalyst
                LoganRay
                LoganRay
                0
                2
                106

              • Redirect 301 issue. I changed my domain name and Google is killing me.
                RyanPurkey
                RyanPurkey
                0
                3
                128

              • 301 redirects reverting to 302 redirects
                Devanur-Rafi
                Devanur-Rafi
                0
                6
                532

              • 301 Redirect
                Uramark
                Uramark
                0
                3
                318

              • 301 Redirect Domain or 301 Redirect Domain + Interior Pages
                Room214
                Room214
                0
                7
                1.1k

              • Google Webmaster redirect vs 301 redirect
                lavellester
                lavellester
                0
                2
                493

              • 301 redirect
                AlanMosley
                AlanMosley
                1
                27
                1.9k

              • 301 redirects
                IM_Learner
                IM_Learner
                0
                2
                759

              Get started with Moz Pro!

              Unlock the power of advanced SEO tools and data-driven insights.

              Start my free trial
              Products
              • Moz Pro
              • Moz Local
              • Moz API
              • Moz Data
              • STAT
              • Product Updates
              Moz Solutions
              • SMB Solutions
              • Agency Solutions
              • Enterprise Solutions
              • Digital Marketers
              Free SEO Tools
              • Domain Authority Checker
              • Link Explorer
              • Keyword Explorer
              • Competitive Research
              • Brand Authority Checker
              • Local Citation Checker
              • MozBar Extension
              • MozCast
              Resources
              • Blog
              • SEO Learning Center
              • Help Hub
              • Beginner's Guide to SEO
              • How-to Guides
              • Moz Academy
              • API Docs
              About Moz
              • About
              • Team
              • Careers
              • Contact
              Why Moz
              • Case Studies
              • Testimonials
              Get Involved
              • Become an Affiliate
              • MozCon
              • Webinars
              • Practical Marketer Series
              • MozPod
              Connect with us

              Contact the Help team

              Join our newsletter
              Moz logo
              © 2021 - 2026 SEOMoz, Inc., a Ziff Davis company. All rights reserved. Moz is a registered trademark of SEOMoz, Inc.
              • Accessibility
              • Terms of Use
              • Privacy