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 Magento?

    Where to put 301 redirects in Magento?

    Technical SEO Issues
    4 2 686
    • 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.
    • tilenkrivec
      tilenkrivec last edited by

      I will be changing the URL structure in a magento store from "base/category/subcategory/product" to "base/product" which means i have to make over 1000 URL 301 redirects so our old links still work.

      Should i put the redirects in a .htaccess file so they stay intact no matter what or should i just put them in with all the other rewrites (in Magento 's URL rewrite manager)?

      Thanks

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

        I think either is fine as long as it works. Personally I prefer to writ my own .htaccess files as I then understand exactly what I have done - it feels safer for some reason.

        tilenkrivec 1 Reply Last reply Reply Quote 1
        • tilenkrivec
          tilenkrivec @IPROdigital last edited by

          Will that in any way slow down the site? Adding thousands of lines of code to the .htaccess file?

          Edit: Checked some more, apparently having thousands of redirects in .htaccess file shows things downs, since Apache scans the file each time a new page is opened.

          tl/dr: Stick with magento URL rewrites

          IPROdigital 1 Reply Last reply Reply Quote 0
          • IPROdigital
            IPROdigital @tilenkrivec last edited by

            Yes I suppose it would check everytime. That said, i have written files with several hundred lines of code and the sites still load really fast even on shared servers which are not the best...

            1 Reply Last reply Reply Quote 1
            • 1 / 1
            • First post
              Last post
            • Google is still indexing the old domain a year after 301 redirects are put in place
              NickSamuel
              NickSamuel
              0
              4
              784

            • 301 Redirects Showing As 307 Redirects
              0
              1
              64

            • Redirect a 301 Redirect
              RedCaffeine
              RedCaffeine
              0
              5
              98

            • 301 redirects
              vibelingo
              vibelingo
              0
              5
              255

            • To 301 redirect or not to 301 redirect? duplicate content problem www.domain.com and www.domain.com/en/
              Chris-CA
              Chris-CA
              0
              5
              456

            • Delete 301 redirected pages from server after redirect is in place?
              RuthBurrReedy
              RuthBurrReedy
              0
              5
              4.0k

            • 301 redirect
              AlanMosley
              AlanMosley
              1
              27
              1.9k

            • 301-redirect
              KeriMorgret
              KeriMorgret
              0
              14
              1.0k

            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