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. Is anyone able to check this 301 redirect for errors please?

    Is anyone able to check this 301 redirect for errors please?

    Technical SEO Issues
    5 2 164
    • 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.
    • Paul_MC
      Paul_MC last edited by

      Hi,

      I had a developer write a 301 wildcard for redirecting old hosted site to a new domain. Old URLS looked like   /b/2039566/1/akai.html
      With varying letters & numbers.

      I have 26,000 crawl errors in GWT and I can only imagine it's because this is looping?
      Can anyone advise if this would be causing grief?

      Thanks
      Paul

      RewriteCond %{HTTP_HOST} ^vacuumdirect.com.au$ [OR]
      RewriteCond %{HTTP_HOST} ^www.vacuumdirect.com.au$
      RewriteRule ^/?$ "http://www.vacuumbag.net.au/vacuum-cleaners.html" [R=301,L]

      <ifmodule mod_rewrite.c="">RewriteEngine On
        RewriteBase /
        RewriteRule ^p/([0-9]+)/(.*) default/$2 [R=301,L]</ifmodule>

      <ifmodule mod_rewrite.c="">RewriteEngine On
        RewriteBase /
        RewriteRule ^c/([0-9]+)/1/(.*) default/vacuum-bags/vacuum-cleaner-bags-$2 [R=301,L]</ifmodule>

      <ifmodule mod_rewrite.c="">RewriteEngine On
        RewriteBase /
        RewriteRule ^p/([0-9]+)/(.*) $2 [R=301,L]</ifmodule>

      <ifmodule mod_rewrite.c="">RewriteEngine On
        RewriteBase /
        RewriteRule ^c/([0-9]+)/(.*) default/$2 [R=301,L]</ifmodule>

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

        I think I just found it.
        He's used the wrong domain name.
        Only realized when I cut & pasted.

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

          Hi Vacbag, just one question, why do you have so many

          <ifmodule mod_rewrite.c="">RewriteEngine On
            RewriteBase /
          [.................]</ifmodule>

          First if you have the rewriteengine On (and you should, because if not your redirect won't work at all) at the top of your htaccess, you don't need it in every ifmodule.

          If you use the rewritebase rule, use it on top so ti applies to all the rules, without repeating over and over. Maybe I'm seeing jsut a bunch of your code, but I don't see the added value of having so many ifmodules...

          Paul_MC 1 Reply Last reply Reply Quote 1
          • Paul_MC
            Paul_MC @mememax last edited by

            I've just deleted all his stuff from the htacess.

            Should I now just do 301's for all the 404 errors that I can find?

            I was hoping for a wild card (hence this guy doing it for me).
            Anyone want to have a crack at doing it for me? Happy to pay a nominal fee

            mememax 1 Reply Last reply Reply Quote 0
            • mememax
              mememax @Paul_MC last edited by

              Hi Vac, send me a private message and in m y free time I'll be glad to help you, if I can condense the redirects in just one or two rules I'll definitely do that. However I think you don't have to redirect all your 404s. (further reading here)

              It's natural for a site to have 404s you need to redirect only pages which are actually going elsewhere (as the redirect term indicates), for expired content or not available pages, you'll better create a customized 404 page to help UX on your site.

              1 Reply Last reply Reply Quote 1
              • 1 / 1
              • First post
                Last post
              • 301 Redirects Showing As 307 Redirects
                0
                1
                64

              • 404 Errors for Form Generated Pages - No index, no follow or 301 redirect
                Ric_McHale
                Ric_McHale
                0
                5
                549

              • Why is Coyscape showing content duplication error even after implementing 301 redirect ?
                BlueprintMarketing
                BlueprintMarketing
                0
                5
                230

              • To avoid errors in our Moz crawl, we removed subdomains from our host. (First we tried 301 redirects, also listed as errors.) Now we have backlinks all over the web that are broken. How bad is this, from a pagerank standpoint?
                KristyFord
                KristyFord
                0
                7
                172

              • Redirect a 301 Redirect
                RedCaffeine
                RedCaffeine
                0
                5
                98

              • Increase 404 errors or 301 redirects?
                tomhall90
                tomhall90
                0
                8
                1.4k

              • Does it really matter to set 301 redirect for not found error pages?
                alsvik
                alsvik
                0
                4
                431

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

              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