undefined
Skip to content
Moz logo Menu open Menu close
  • Products
    • Moz Pro
    • Moz Pro Home
    • Moz Local
    • Moz Local Home
    • STAT
    • Moz API
    • Moz API Home
    • Compare SEO Products
    • Moz Data
  • Free SEO Tools
    • Domain Analysis
    • Keyword Explorer
    • Link Explorer
    • Competitive Research
    • MozBar
    • More Free SEO Tools
  • Learn SEO
    • Beginner's Guide to SEO
    • SEO Learning Center
    • Moz Academy
    • MozCon
    • Webinars, Whitepapers, & Guides
  • Blog
  • Why Moz
    • Digital Marketers
    • Agency Solutions
    • Enterprise Solutions
    • Small Business Solutions
    • The Moz Story
    • New Releases
  • Log in
  • Log out
  • Products
    • Moz Pro

      Your all-in-one suite of SEO essentials.

    • Moz Local

      Raise your local SEO visibility with complete local SEO management.

    • STAT

      SERP tracking and analytics for enterprise SEO experts.

    • Moz API

      Power your SEO with our index of over 44 trillion links.

    • Compare SEO Products

      See which Moz SEO solution best meets your business needs.

    • Moz Data

      Power your SEO strategy & AI models with custom data solutions.

    Let your business shine with Listings AI
    Moz Local

    Let your business shine with Listings AI

    Learn more
  • Free SEO Tools
    • Domain Analysis

      Get top competitive SEO metrics like DA, top pages and more.

    • Keyword Explorer

      Find traffic-driving keywords with our 1.25 billion+ keyword index.

    • Link Explorer

      Explore over 40 trillion links for powerful backlink data.

    • Competitive Research

      Uncover valuable insights on your organic search competitors.

    • MozBar

      See top SEO metrics for free as you browse the web.

    • More Free SEO Tools

      Explore all the free SEO tools Moz has to offer.

    NEW Keyword Suggestions by Topic
    Moz Pro

    NEW Keyword Suggestions by Topic

    Learn more
  • Learn SEO
    • Beginner's Guide to SEO

      The #1 most popular introduction to SEO, trusted by millions.

    • SEO Learning Center

      Broaden your knowledge with SEO resources for all skill levels.

    • On-Demand Webinars

      Learn modern SEO best practices from industry experts.

    • How-To Guides

      Step-by-step guides to search success from the authority on SEO.

    • Moz Academy

      Upskill and get certified with on-demand courses & certifications.

    • MozCon

      Save on Early Bird tickets and join us in London or New York City

    Unlock flexible pricing & new endpoints
    Moz API

    Unlock flexible pricing & new endpoints

    Find your plan
  • Blog
  • Why Moz
    • Digital Marketers

      Simplify SEO tasks to save time and grow your traffic.

    • Small Business Solutions

      Uncover insights to make smarter marketing decisions in less time.

    • Agency Solutions

      Earn & keep valuable clients with unparalleled data & insights.

    • Enterprise Solutions

      Gain a competitive edge in the ever-changing world of search.

    • The Moz Story

      Moz was the first & remains the most trusted SEO company.

    • New Releases

      Get the scoop on the latest and greatest from Moz.

    Surface actionable competitive intel
    New Feature

    Surface actionable competitive intel

    Learn More
  • Log in
    • Moz Pro
    • Moz Local
    • Moz Local Dashboard
    • Moz API
    • Moz API Dashboard
    • Moz Academy
  • Avatar
    • Moz Home
    • Notifications
    • Account & Billing
    • Manage Users
    • Community Profile
    • My Q&A
    • My Videos
    • Log Out

The Moz Q&A Forum

  • Forum
  • Questions
  • Users
  • Ask the Community

Welcome to the Q&A Forum

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

  1. Home
  2. Research & Trends
  3. White Hat / Black Hat SEO
  4. Thousands of 301 redirections - .htaccess alternatives?

Moz Q&A is closed.

After more than 13 years, and tens of thousands of questions, Moz Q&A closed on 12th December 2024. Whilst we’re not completely removing the content - many posts will still be possible to view - we have locked both new posts and new replies. More details here.

Thousands of 301 redirections - .htaccess alternatives?

White Hat / Black Hat SEO
6
10
5.6k
Loading More Posts
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as question
Log in to reply
This topic has been deleted. Only users with question management privileges can see it.
  • esiow2013
    esiow2013 last edited by Oct 22, 2013, 8:51 AM

    Hi guys,

    I just want to ask if there are other possible issues/problems (other than server load) once we implement 301 redirections for 10,000+ URLs using .htaccess. Are there other alternatives?

    1 Reply Last reply Reply Quote 0
    • jfmonfette
      jfmonfette Subscriber @KingRosales last edited by Aug 25, 2014, 12:43 PM Aug 25, 2014, 12:43 PM

      Thank you for your answer ! I will share it with our IT team.

      1 Reply Last reply Reply Quote 0
      • KingRosales
        KingRosales @jfmonfette last edited by Aug 25, 2014, 12:03 PM Aug 25, 2014, 11:53 AM

        Why don't you just have a VPS server with NGINX the stream handler/reverse proxy for your IIS web server?

        • https://www.digitalocean.com/community/tutorials/how-to-set-up-nginx-load-balancing
        • http://www.iborgelt.com/windows-home-server-behind-nginx-reverse-proxy/

        You're just using the VPS as an interface to handle your redirects and for $5 a month. You can't beat it. Im sure if your IT department googles: nginx reverse proxy iis they will get the idea.

        jfmonfette 1 Reply Last reply Aug 25, 2014, 12:43 PM Reply Quote 1
        • jfmonfette
          jfmonfette Subscriber last edited by Aug 25, 2014, 11:47 AM Aug 25, 2014, 11:47 AM

          Hi guys, I have a similar problem, but on IIS7. Our IT department says our 301 redirections file is at it's max size in the webconfig. They could increase the limit, but says it will impact page load speed negatively. What's the impact on page speed of having 5000 to 10000 urls in the rewrite map ?

          Also, they're also looking at a solution to look at the redirections only when the site gives a 404, so it would hit 404, then 301, then 200. I am a little scared of this SEO wize. Would it be a problem?

          Thanks !

          KingRosales 1 Reply Last reply Aug 25, 2014, 11:53 AM Reply Quote 0
          • topic:timeago_earlier,9 months
          • Tom-Anthony
            Tom-Anthony last edited by Nov 28, 2013, 9:09 AM Nov 20, 2013, 2:01 PM

            Putting aside server load / config issues, and from the pure SEO point of view.

            No, you shouldn't have any major issues with that many 301s. However, what you might find is that depending on the size of your site and the frequency of Googlebots visits that some of these pages take a long time (months) to drop out of the index and be replaced by their newer alternatives. This normally isn't cause for alarm.

            In some instances you might end up with pages that now have now links to them (as their parent categories were all redirected also) and so seem to get stuck and never get recrawled by Google to update. In a couple of instances I have had success using XML sitemap files that just include these 'blocked' pages (the old URLs still in the index) to prompt Google to recrawl them.

            Also there is Google Webmaster Tools feature to 'crawl as Googlebot' which then prompts you to 'submit to index' which you can use to prompt recrawls on a per-page basis (but you have credits here, so should only be for the more important pages).

            Best of luck!

            1 Reply Last reply Reply Quote 1
            • Tom-Anthony
              Tom-Anthony @esiow2013 last edited by Nov 20, 2013, 1:56 PM Nov 20, 2013, 1:56 PM

              The main benefit of this would be in reducing server load / response time, and potentially in maintainability of the server config.

              The most important aspect of this side of thing would be based on how many separate rules you have in your .htaccess file for those 10,000 redirects.

              1 Reply Last reply Reply Quote 0
              • topic:timeago_earlier,8 days
              • esiow2013
                esiow2013 @KevinBudzynski last edited by Nov 12, 2013, 6:03 AM Nov 12, 2013, 6:03 AM

                Hi Kevin,

                What's the difference of this method to the standard 301 redirection using .htaccess?

                Tom-Anthony 1 Reply Last reply Nov 20, 2013, 1:56 PM Reply Quote 0
                • topic:timeago_earlier,19 days
                • esiow2013
                  esiow2013 last edited by Oct 24, 2013, 12:59 AM Oct 24, 2013, 12:59 AM

                  Do you guys have a step-by-step guide in implementing 301 redirection using this httpd main server config file?

                  1 Reply Last reply Reply Quote 0
                  • joseph.chambers
                    joseph.chambers last edited by Feb 10, 2014, 1:44 AM Oct 22, 2013, 11:12 AM

                    Well, if you're on a VPS/Dedicated Machine. - I would take a look at http://httpd.apache.org/docs/current/rewrite/rewritemap.html

                    RewriteMap has 0 effect on the load time like if you were to have the same in .htaccess it will eat those redirect rules. Remember 301s cache in the browser so when you're testing have them all 302s until you're happy and then watch your rewrite log when you launch. If you need help let us know. 🙂

                    This does take some knowhow and learning but you should be able to get this done in a few days. ( testing, reading documentation )

                    1 Reply Last reply Reply Quote 1
                    • KevinBudzynski
                      KevinBudzynski last edited by Oct 22, 2013, 11:04 AM Oct 22, 2013, 11:03 AM

                      Do you have access to the httpd main server config file? If so, please read Apache HTTP Server Tutorial: .htaccess files.

                      ".htaccess files should be used in a case where the content providers need to make configuration changes to the server on a per-directory basis, but do not have root access on the server system. In the event that the server administrator is not willing to make frequent configuration changes, it might be desirable to permit individual users to make these changes in .htaccess files for themselves. This is particularly true, for example, in cases where ISPs are hosting multiple user sites on a single machine, and want their users to be able to alter their configuration.

                      However, in general, use of .htaccess files should be avoided when possible. Any configuration that you would consider putting in a .htaccess file, can just as effectively be made in a <directory>section in your main server configuration file."</directory>

                      esiow2013 1 Reply Last reply Nov 12, 2013, 6:03 AM Reply Quote 1
                      • 1 / 1
                      1 out of 10
                      • First post
                        1/10
                        Last post

                      Got a burning SEO question?

                      Subscribe to Moz Pro to gain full access to Q&A, answer questions, and ask your own.


                      Start my free trial


                      Browse Questions

                      Explore more categories

                      • Moz Tools

                        Chat with the community about the Moz tools.

                      • SEO Tactics

                        Discuss the SEO process with fellow marketers

                      • Community

                        Discuss industry events, jobs, and news!

                      • Digital Marketing

                        Chat about tactics outside of SEO

                      • Research & Trends

                        Dive into research and trends in the search industry.

                      • Support

                        Connect on product support and feature requests.

                      • See all categories

                      Related Questions

                      • CustomCreatives

                        Moz was unable to crawl your site? Redirect Loop issue

                        Moz was unable to crawl your site on Jul 25, 2017. I am getting this message for my site: It says "unable to access your homepage due to a redirect loop. https://kuzyklaw.com/ Site is working fine and last crawled on 22nd July. I am not sure why this issue is coming. When I checked the website in Chrome extension it saysThe server has previously indicated this domain should always be accessed via HTTPS (HSTS Protocol). Chrome has cached this internally, and did not connect to any server for this redirect. Chrome reports this redirect as a "307 Internal Redirect" however this probably would have been a "301 Permanent redirect" originally. You can verify this by clearing your browser cache and visiting the original URL again. Not sure if this is actual issue, This is migrated on Https just 5 days ago so may be it will resolved automatically. Not sure, can anybody from Moz team help me with this?

                        White Hat / Black Hat SEO | Dec 29, 2017, 10:30 AM | CustomCreatives
                        0
                      • remkoallertz

                        Acquire domains to boost yours, how to redirect an acquired domain

                        What is the best way to redirect for best SEO benefits? Examples: glaspunt.nl -> glas.nl fietstassen.eu -> loodgieter.nl Any technical information how to (root) redirect for best SEO practices?

                        White Hat / Black Hat SEO | Jan 12, 2015, 5:21 AM | remkoallertz
                        0
                      • crescentdigital

                        Suspicious external links to site have 302 redirects

                        Hi, I have been asked to look at a site where I suspect some questionable SEO work, particularly link building. The site does seem to be performing very poorly in Google since January 2014, although there are no messages in WMT. Using WMT, OPenSiteExplorer, Majestic & NetPeak, I have analysed inbound links and found a group of links which although are listed in WMT, etc appear to 302 redirect to a directory in China (therefore the actual linking domain is not visible). It looks like a crude type of link farm, but I cant understand why they would use 302s not 301s. The domains are not visible due to redirects. Should I request a disavow or ignore? The linking domains are listed below: http://www.basalts.cn/
                        http://www.chinamarbles.com.cn/
                        http://www.china-slate.com.cn/
                        http://www.granitecountertop.com.cn/
                        http://www.granite-exporter.com/
                        http://www.sandstones.biz/
                        http://www.stone-2.com/
                        http://www.stonebuild.cn/
                        http://www.stonecompany.com.cn/
                        http://www.stonecontact.cn/
                        http://www.stonecrate.com/
                        http://www.stonedesk.com/
                        http://www.stonedvd.com/
                        http://www.stonepark.cn/
                        http://www.stonetool.com.cn/
                        http://www.stonewebsite.com/ Thanks Steve

                        White Hat / Black Hat SEO | Jul 18, 2014, 10:12 AM | crescentdigital
                        0
                      • esiow2013

                        Can I 301 redirect old URLs to staging URLs (ex. staging.newdomain.com) for testing?

                        I will temporarily remove a few pages from my old website and redirect them to a new domain but in staging domain. Once the redirection is successful, I will remove the redirection rules in my .htaccess and get the removed pages back to live. Thanks in advance!

                        White Hat / Black Hat SEO | Nov 26, 2013, 8:33 AM | esiow2013
                        0
                      • semoney

                        Site dropped suddenly. Is it due to htaccess?

                        I had a new site that was ranking on the first page for 5 keywords. My site was hacked recently and I went through a lot of trouble to restore it. Last night, I discovered that my site was nowhere to be found but when i searched site: mysite.com, it was still ranking which means it was not penalized. I discovered the issue to be a .htaccess and it have been resolved. My question is now that the .htaccess issue is resolved , will my site be restored back to the first page? Is there additional things that i should do? I have notified google by submitting my site

                        White Hat / Black Hat SEO | Apr 10, 2013, 3:00 AM | semoney
                        0
                      • THB

                        Closing down site and redirecting its traffic to another

                        OK - so we currently own two websites that are in the same industry. Site A is our main site which hosts real estate listings and rentals in Canada and the US. Site B hosts rentals in Canada only. We are shutting down site B to concentrate solely on Site A, and will be looking to redirect all traffic from Site B to Site A, ie. user lands on Toronto Rentals page on Site B, we're looking to forward them off to Toronto Rentals page on Site A, and so on.  Site A has all the same locations and property types as Site B. On to the question: We are trying to figure out the best method of doing this that will appease both users and the Google machine.  Here's what we've come up with (2 options): When user hits Site B via Google/bookmark/whatever, do we: 1. Automatically/instantly (301) redirect them to the applicable page on Site A? 2. Present them with a splash page of sorts ("This page has been moved to Site A.  Please click the following link <insert anchor="" text="" rich="" url="" here="">to visit the new page.").</insert> We're worried that option #1 might confuse some users and are not sure how crawlers might react to thousands of instant redirects like that. Option #2 would be most beneficial to the end-user (we're thinking) as they're being notified, on page, of what's going on.  Crawlers would still be able to follow the URL that is presented within the splash write-up. Thoughts?  We've never done this before.  It's basically like one site acquiring another site; however, in this case, we already owned both sites.  We just don't have time to take care of Site B any longer due to the massive growth of Site A. Thanks for any/all help. Marc

                        White Hat / Black Hat SEO | Mar 14, 2013, 5:54 PM | THB
                        0
                      • highlyrelevant

                        Deny visitors by referrer in .htaccess to clean up spammy links?

                        I want to lead off by saying that I do not recommend trying this. My gut tells me that this is a bad idea, but I want to start a conversation about why. Since penguin a few weeks ago, one of the most common topics of conversation in almost every SEO/Webmaster forum is "how to remove spammy links". As Ryan Kent pointed out, it is almost impossible to remove all of these links, as these webmasters and previous link builders rarely respond. This is particularly concerning given that he also points out that Google is very adamant that ALL of these links are removed. After a handful of sleepless nights and some research, I found out that you can block traffic from specific referring sites using your.htaccess file. My thinking is that by blocking traffic from the domains with the spammy links, you could prevent Google from crawling from those sites to yours, thus indicating that you do not want to take credit for the link. I think there are two parts to the conversation... Would this work? Google would still see the link on the offending domain, but by blocking that domain are you preventing any strength or penalty associated with that domain from impacting your site? If for whatever reason this would nto work, would a tweak in the algorithm by Google to allow this practice be beneficial to both Google and the SEO community? This would certainly save those of us tasked with cleaning up previous work by shoddy link builders a lot of time and allow us to focus on what Google wants in creating high quality sites. Thoughts?

                        White Hat / Black Hat SEO | May 24, 2013, 3:40 PM | highlyrelevant
                        0
                      • penn73

                        Penalised by Google - Should I Redirect to a new domain?

                        Last month my rankings dropped a couple of pages on Google and am no longer receiving as many visits from Google as I used to. It's coming up to summer which is the time my business naturally picks up yet I can't fix this problem. I have a crazy idea of redirecting my established site onto a new domain in hopes that the penalty would be removed. I have tried removing any manipulative links yet my ranking are not coming back. Anyone had success in redirecting to a new domain?

                        White Hat / Black Hat SEO | May 10, 2012, 10:11 AM | penn73
                        0

                      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 - 2025 SEOMoz, Inc., a Ziff Davis company. All rights reserved. Moz is a registered trademark of SEOMoz, Inc.
                      • Accessibility
                      • Terms of Use
                      • Privacy

                      Looks like your connection to Moz was lost, please wait while we try to reconnect.