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. Where to put 301 redirects in my Wordpress htaccess file?

    Where to put 301 redirects in my Wordpress htaccess file?

    Technical SEO Issues
    3 2 34
    • 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.
    • Benspain
      Benspain last edited by

      I have about 25 301 redirects in my Wordpress htaccess file, that look like this:

      <code>Redirect301/store/index.html https://www.notesinspanish.com/store-home/</code>
      

      At the moment they are at the bottom of my htaccess file, below the usual Wordpress rewrite rules:

      <code># BEGIN WordPress
       <ifmodulemod_rewrite.c>RewriteEngine On
      RewriteBase /
      RewriteRule ^index\.php$ - [L]
      RewriteCond %{REQUEST_FILENAME} !-f
      RewriteCond %{REQUEST_FILENAME} !-d
      RewriteRule . /index.php [L]
      
      # END WordPress</ifmodulemod_rewrite.c></code>
      

      So they are below all that. Above my WP rewrite rules I have a number of other rules from plugins (caching, ssl). Are my 301's OK where they are at the very bottom of that file? They are working, and redircting pages correctly. Should they be somewhere else?

      Many thanks for any help.

      Thanks for any help.

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

        Hey there!

        So the only thing that stands out to me is there is no space between Redirect 301 and /store. If this is working however I think you don't need to change anything. The htaccess is read in order, so as long as they are in there you should be ok! The only change I would make is listed below.

        Redirect301/store/index.html https://www.notesinspanish.com/store-home/

        should be

        Redirect 301 /store/index.html https://www.notesinspanish.com/store-home/

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

          Thanks HashtagHustler, yes, there is a space there, not sure how it got left out here! Thanks for your answer 🙂

          1 Reply Last reply Reply Quote 0
          • 1 / 1
          • First post
            Last post
          • Help creating a 301 redirect in my htaccess file
            Felip3
            Felip3
            0
            4
            108

          • 301 redirect .htaccess
            Christy-Correll
            Christy-Correll
            0
            5
            234

          • Where to put 301 redirects in Magento?
            IPROdigital
            IPROdigital
            0
            4
            686

          • Help needed please with 301 redirects in htaccess file.
            petersommertravels
            petersommertravels
            0
            9
            2.3k

          • 301 redirect on wordpress.com
            Tunji
            Tunji
            0
            3
            2.8k

          • How to write 301 redirects in WordPress
            CeCeBar
            CeCeBar
            0
            12
            2.4k

          • 301 redirect .htaccess problem
            sferrino
            sferrino
            0
            4
            709

          • Wordpress 301 redirects
            KeriMorgret
            KeriMorgret
            0
            5
            916

          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