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. Redirects

    Redirects

    Technical SEO Issues
    3 3 357
    • 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.
    • tylerfraser
      tylerfraser last edited by

      If I redirect page A to page B does page A need to exist before Google sees the redirect. Or can I just put up a redirect and delete page A.

      If the page doesn't need to exist: You have all your redirects in place for a website. You want this website to redirect to another website. You completely delete the website and put up the htaccess, there should be no problem with this, because the redirects are in place correct?

      Thanks

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

        To your first question: Redirects are done for pages that presently exist and have been indexed by Google, not for pages that don't presently exist on a website.  So if it's a page that has already been indexed by Google, you would implement a 301 redirect to point the old page and most of its link juice to the new page.  (Not sure if this answer is what you were after - maybe I don't get the question?)

        As to redirecting an old site to a new domain: I suppose you could technically delete the old pages when you put up the htaccess file with the redirects to the new pages.  However, I'd strongly caution against doing this in case you need to access the old content for some reason.  The crawler won't be able to get at it, because as soon as it hits the server it will trigger the htaccess file which will forcibly send them to the new URLs.  I've occasionally had to access an old site's content, so I'm glad I didn't delete it entirely.

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

          Think of Googlebot like a web user (who happens to be somewhat aimless and browses without JavaScript support).

          Googlebot requests a page that it finds by A) following a link on another page, B) following a reference in a sitemap.xml file or C) some other usage data we don't know about (i.e. it scraped the link from a source it doesn't "officially" have access to or users have hit that page frequently with Google toolbar installed, etc).

          This is a basic server request for the page. The server gets the message "load this URL" - if there's an .htaccess 301 redirect in place, it does not matter whether the page would ordinarily display content, because the server never gets to that point. It handles the redirect first.

          I'm hung up on the second part of your question. "If the page doesn't need to exist...you want this website to redirect to another website." I'm not sure under what circumstances you'd need to do this. If the page doesn't exist, it shouldn't be referenced anywhere on the web, and if it's not referenced anywhere on the web, there's no need for the redirect.

          Perhaps you're planning to set up the page as a vanity URL - such as a short URL, for easy reading/remembrance.

          In short, for whatever reason you want to achieve this, .htaccess bypasses the need for the first URL to exist - it works on the request for that page, whether the page is there or not, the redirect will bypass it and work properly.

          1 Reply Last reply Reply Quote 1
          • 1 / 1
          • First post
            Last post
          • Redirection chain and Javascript Redirect
            0
            1
            19

          • How do you fix redirect chains and temporary redirects?
            AllChargedUp
            AllChargedUp
            0
            7
            329

          • 301 redirects reverting to 302 redirects
            Devanur-Rafi
            Devanur-Rafi
            0
            6
            532

          • Redirects
            Adam.Whittles
            Adam.Whittles
            0
            2
            272

          • Redirect
            KeriMorgret
            KeriMorgret
            0
            4
            588

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

          • Is a 302 redirect the correct redirect from a root URL to a detail page?
            KeriMorgret
            KeriMorgret
            0
            7
            1.8k

          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