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
    • SEO Q&A
    • Webinars, Whitepapers, & Guides
  • Blog
  • Why Moz
    • Agency Solutions
    • Enterprise Solutions
    • Small Business Solutions
    • Case Studies
    • 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.

    NEW Keyword Suggestions by Topic
    Moz Pro

    NEW Keyword Suggestions by Topic

    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.

    • SEO Q&A

      Insights & discussions from an SEO community of 500,000+.

    Unlock flexible pricing & new endpoints
    Moz API

    Unlock flexible pricing & new endpoints

    Find your plan
  • Blog
  • Why Moz
    • 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.

    • Case Studies

      Explore how Moz drives ROI with a proven track record of success.

    • 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. SEO Tactics
  3. Technical SEO
  4. Reverse proxy a successful blog from subdomain to subfolder?

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.

Reverse proxy a successful blog from subdomain to subfolder?

Technical SEO
4
8
5.4k
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.
  • bedbugsupply
    bedbugsupply last edited by Mar 17, 2014, 1:10 PM

    I have an ecommerce site that we'll call confusedseo.com. I created a WordPress blog and CNAME'd it to blog.confusedseo.com. Since then, the blog has earned a PageRank of 3 and a decent amount of organic traffic.

    I am considering a reverse proxy to forward blog.confusedseo.com to confusedseo.com/blog/. As I understand it, this will greatly help the "link juice" of the root domain. However, I'm concerned about any potential harm done to the existing SEO value of the blog. What, if anything, should I be doing to ensure that the reverse proxy doesn't hurt my "juice" rather than help it?

    1 Reply Last reply Reply Quote 0
    • joshibhargav_20
      joshibhargav_20 last edited by Mar 19, 2020, 3:59 AM Mar 19, 2020, 3:59 AM

      Hey, I have a question in this:

      We have setup a seperate Google Analytics ID and Google Search Console Property for the sub-domain and then if we are using reverse proxy to keep it under sub-directory.

      So what happens to the GA tracking and Google Search Console in this case?

      You can read my full question here:

      1 Reply Last reply Reply Quote 0
      • topic:timeago_earlier,6 years
      • KalaSEOs
        KalaSEOs last edited by Sep 18, 2014, 10:56 AM Sep 18, 2014, 10:56 AM

        Hi there,

        Im investigating the same reverse proxy solution for my eCommerce blog. was your implementation successful?

        1 Reply Last reply Reply Quote 2
        • topic:timeago_earlier,6 months
        • Philip-DiPatrizio
          Philip-DiPatrizio @bedbugsupply last edited by Mar 18, 2014, 2:21 PM Mar 17, 2014, 6:15 PM

          Canonical will pass link juice almost exactly like 301s will, so there's no harm in going that route.  Matt Cutts explains that in this video: http://www.youtube.com/watch?v=zW5UL3lzBOA

          You sound like you're good to go.  You've got duplicate content worked out, and you've got a plan to retain link juice (canonical).

          1 Reply Last reply Reply Quote 2
          • bedbugsupply
            bedbugsupply @Philip-DiPatrizio last edited by Mar 17, 2014, 6:06 PM Mar 17, 2014, 6:06 PM

            Since the subdomain does still exist live, someone doing a reverse proxy would need to take some steps to mitigate duplicate content issues. The first would be to set up the new permalinks and rel canonical tags via Wordpress and Yoast's SEO plugin (which rocks, btw). Then you would need to do the robots.txt/GWT steps that you quoted. If there's anything else that needs doing, I am definitely all ears before I attempt this.

            Philip-DiPatrizio 1 Reply Last reply Mar 17, 2014, 6:15 PM Reply Quote 1
            • Philip-DiPatrizio
              Philip-DiPatrizio @bedbugsupply last edited by Mar 17, 2014, 6:08 PM Mar 17, 2014, 6:01 PM

              Ah!  I misunderstood the bit about reverse proxying.  In that case... to be perfectly honest, I'm not sure.

              When you setup a reverse proxy, what happens to the sub-domain?  Does it go away or does it still exist live?  If it remains live, you'd end up with a duplicate content issue.

              EDIT >> I found this at the source you linked to (which answers my question) -->

              "The next thing you can do is add a robots.txt file to the sub-domain that stops robots from indexing it. As Reverse Proxying keeps the requested URL the /blog/ URLs will use the robots.txt from the main domain rather than the sub-domain.

              The final (and most extreme) thing you can do is to register Google Webmaster Tools for the sub-domain and remove it from the index. If you are doing this, you need to do it in conjunction with robots.txt."

              bedbugsupply 1 Reply Last reply Mar 17, 2014, 6:06 PM Reply Quote 2
              • bedbugsupply
                bedbugsupply @Philip-DiPatrizio last edited by Mar 17, 2014, 5:57 PM Mar 17, 2014, 5:57 PM

                Thanks for your response, Philip. My research indicates that a 301 redirect on a location that is being reverse proxied would result in an infinite loop. (source) I haven't tested it to confirm, though. Is that true?

                Philip-DiPatrizio 1 Reply Last reply Mar 17, 2014, 6:01 PM Reply Quote 1
                • Philip-DiPatrizio
                  Philip-DiPatrizio last edited by Mar 17, 2014, 5:43 PM Mar 17, 2014, 5:43 PM

                  You need to setup 301 redirects for ALL of the pages and posts on the blog sub-domain to their new locations in the sub-folder.  This is very important.  Without the proper redirects in place, you will lose all value from links pointing to the blog sub-domain, plus all the history, authority, and rankings that the pages have earned.

                  As for your reasoning to move it from a sub-domain to a sub-folder, I'm not sure you'll receive any sort of link juice boost on your root domain from doing this.  Maybe someone else can prove me wrong/correct me...

                  bedbugsupply 1 Reply Last reply Mar 17, 2014, 5:57 PM Reply Quote 0
                  • 1 / 1
                  1 out of 8
                  • First post
                    1/8
                    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

                  • NielsDE

                    Is having my homepage on a subfolder harmful?

                    Hi guys, I am the webmaster of the following two websites: www.gpblog.com/nl
                    www.gpblog.com/en The first URL is the Dutch version of GPBlog, the second URL is the UK version of GPblog. Whenever a person visits www.gpblog.com he gets redirected to either the Dutch version or the UK version based on his location. My question is: is it harmful to have 1. your homepage on a subfolder and 2. is it harmful to run two different languages on one domain using this technique? Thank you in advance!

                    Technical SEO | Jun 13, 2019, 7:14 AM | NielsDE
                    1
                  • daniel-brooks

                    How do I complete a reverse DNS check when completing log file analysis?

                    I'm doing some log file analysis and need to run a reverse DNS check to ensure that I'm analysing logs from Google and not any imposters. Is there a command I can use in terminal to do this? If not, whats the best way to verify Googlebot? Thanks

                    Technical SEO | Aug 3, 2018, 11:44 PM | daniel-brooks
                    0
                  • rodelmo4

                    Does using a reverse proxy to make a subdomain appear as a subdirectory affect SEO?

                    Using a reverse proxy only makes it appear that a subdomain is really a subfolder. However, links in the end remain the same. Does this have any negative (or positive) impact on SEO? Does it make it difficult from the blog's (subdomain's) sitemap or robots.txt file to be properly read by search engines?

                    Technical SEO | Mar 19, 2020, 2:14 AM | rodelmo4
                    1
                  • m.m

                    Subdomain as News Section instead of Source in Google News?

                    Hi, trying to dig into Google News for a large site, mostly containing news.
                    The structure of the site network is subdomain.domain.se, and each subdomain has it's own brand with it's own news: x.domain.se
                    y.domain.se
                    z.domain.se
                    etc... Each brand/subdomain is more or less to equate with its own subjectfield/section. In Google News every subdomain is configured with it's own Site Source url, but also having the set up with one section with the same url. It seems like they're getting conflicts in Google News, Google can't always figure out which news article to which brand. Example: an article owned by brand A, but it is sometimes happens that articles getting labeled as brand B in the news SERP, though the link takes you correctly to brand A. I am thinking that this config in News Publisher Center may be a problem? Anyone having any thoughts if that would be better if we delete all source urls except for domain.se-brand and then put all the other subdomains as sections? www.domain.se x.domain.se y.doamin.se z.domain.se Any smart thoughts on this one? Or anything else that could make this wrong labeling (all content included images are hosted in same domain for example). Regards,
                    Magnus

                    Technical SEO | Mar 1, 2016, 2:27 PM | m.m
                    0
                  • inhouseninja

                    Will Adding Publish Date at end of Page Title for Blog posts Hurt SEO?

                    I'd like to be able to easily track blog posts by month but in Google reports when you set a date range obviously older blog post still appear and with amount of blog posts we generate without seeing the date in the title it's not obvious what was published and when it was published. For example if a Blog Title was "/dangers-of-sharing-KM-knowledge-01-11-15 would it hurt SEO? The reason is I'd like to have a quick way to know how new posts do each month compared to older content

                    Technical SEO | Feb 5, 2015, 5:03 AM | inhouseninja
                    0
                  • Creditsafe

                    No index on subdomains

                    Hi, We have a subdomain that is appearing in the search results - I want to hide this as it looks really bad. If I were to add the no index tag to the sub domain would URL would this affect the whole domain or just that sub domain? The main domain is vitally important - it is just that sub domain I need to hide. Many thanks

                    Technical SEO | Mar 14, 2014, 12:53 AM | Creditsafe
                    0
                  • aactive

                    Simple 301 redirect a subfolder to another subfolder

                    Hi, I have a number of sub-folders that I have to move, each of which contains a number of files. subfolder A has files a, b & c subfolder B has files d, e & f
                    subfolder C has files g, h & i A, B & C folders need to be X, Y & Z Will the following work? RewriteRule ^subfolder-A/* http://www.domain.com/subfolder-X/ [R=301,L]
                    RewriteRule ^subfolder-B/* http://www.domain.com/subfolder-Y/ [R=301,L]
                    RewriteRule ^subfolder-C/* http://www.domain.com/subfolder-Z/ [R=301,L] will this result in visitors to http://www.domain.com/subfolder-B/f.html being redirected to http://www.domain.com/subfolder-Y/f.html? All on the same domain. in reality we are talking hundreds of sub folders and thousands of files so we don't want to have to reference every file individually in the htaccess. Thanks

                    Technical SEO | Feb 27, 2013, 9:51 PM | aactive
                    0
                  • vernonmack

                    Blogs are best when hosted on domain, subdomain, or...?

                    I’ve heard the it is a best practice to host your blog within your site. I’ve also heard it’s best to put it on a subdomain.  What do you believe is the best home for your blog and why?

                    Technical SEO | May 10, 2012, 2:20 AM | vernonmack
                    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
                  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.