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. Intermediate & Advanced SEO
    4. Hash URLs

    Hash URLs

    Intermediate & Advanced SEO
    7 3 244
    • 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.
    • KarlBantleman
      KarlBantleman last edited by

      Hi Mozzers,

      Happy Friday! I have a client that has created some really nice pages from their old content and we want to redirect the old ones to the new pages. The way the web developers have built these new pages is to use hashbang url's for example www.website.co.uk/product#newpage

      My question is can I redirect urls to these kind of pages? Would it be using the .htaccess file to do it?

      Thanks in advance,

      Karl

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

        Is the content technically on one page (ww.website.co.uk/product) and just being displays based on the anchor in the URL?

        Has Google indexed the anchored URLs? In my experience Google does not index anchored URLs.

        I'd love to see an example to see how it is coded; however, if they are just anchored URLs displaying content that is all located on one page, the products page, then the products page would be the only page you can redirect.  Technically, anchored URLs are not unique pages.

        If the content is being generated with AJAX and your developers are using the hashbang method to serve a unique URL, I don't believe you would see the hash in the URL.

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

          Hi Schwaab,

          Thanks for the reply. Google hasn't cached the new pages.

          For example, the old page is http://www.teapigs.co.uk/customer/pages/matcha/what-is-matcha and the new content sits on http://www.teapigs.co.uk/tea/matcha_shop with the different tabs. Are we going to have to make them actual pages with static URL's for them to be crawled and indexed? Got a feeling we will!

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

            I misunderstood you before, I thought you meant the old URLs had the anchors.

            You are correct, technically the tabs are not unique pages.  You would have to redirect each of the previous pages to http://www.teapigs.co.uk/tea/matcha_shop rather than to the anchored URL.

            Having content under tabs may limit your ability to rank for a variety of keywords.  For example, if previously there was a page ranking for "What is Matcha?", it may now be difficult to rank for this term because there is no longer a unique page dedicated to the topic.  You lose the ability to have a unique URL, Title Tag, Meta Description, H1, and so on.

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

              I thought that'd be the case! trying to get the developers to create unique pages and try and keep a similar/same design, not sure if it'll be too difficult though. Thanks for the advice though, fingers crossed we'll find a solution.

              Schwaab 1 Reply Last reply Reply Quote 0
              • Schwaab
                Schwaab @KarlBantleman last edited by

                Good luck!

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

                  Just wanted to clear up a bit of confusion. There is a difference between what can be redirected and what will be indexed by search engines.

                  It is absolutely possible to redirect the old URL to the new one that includes the local anchor (hash). In this way, user experience is preserved as for example, the old "what is matcha" page can be redirected directly to the new "what is matcha" tab, landing the user exactly where they expect to be. This is done in .htaccess as normal, but don't forget to escape the # symbol in the URL when you write the redirect.

                  But as Schwaab says, Google will index all the tabs' content as if they were all one page. If you look at the page source for any of those the tabbed pages, you'll see it's actually one primary page that includes separate sections for each tab - you can use GWT's Fetch as Googlebot to confirm this. So getting the main URL indexed means all the tabs' content are indexed, just not under separate URLs.

                  Having separate pages each targeting different but related matcha-related keywords can be beneficial, but so can having a single, longer-content, authoritative page with many more incoming links (as would be the case if the old separate pages were redirected to one primary page, consolidating all their separate link authority). That becomes a judgment call and is where the "art of SEO" come into play 🙂

                  Hope that helps?

                  Paul

                  P.S. Little quirk of local anchor URLs. If you're adding parameters to them such as Google Analytics tracking for incoming links, you need to add the hash after the parameters, or the local anchor won't work. e.g. mysite.com#localanchor becomes mysite.com?utmsource=foo&utm_medium=foo&utm_campaign=bar#localanchor

                  1 Reply Last reply Reply Quote 1
                  • 1 / 1
                  • First post
                    Last post
                  • Universal URL versus Specific URL addresses
                    RaynChris
                    RaynChris
                    0
                    3
                    120

                  • SEO issues? New functionality added to website and now hash (in URL) - fragments
                    RetailClicks
                    RetailClicks
                    0
                    5
                    205

                  • Is 1:1 301 redirect required on indexed URL when restructing URL even if the new URL is canonicalized?
                    EricaMcGillivray
                    EricaMcGillivray
                    0
                    2
                    138

                  • Canonical URL & sitemap URL mismatch
                    LynnPatchett
                    LynnPatchett
                    0
                    2
                    612

                  • Is it more important to have a concise URL or to have the URL in an categorized folder?
                    MiriamEllis
                    MiriamEllis
                    0
                    12
                    292

                  • Should we use URL parameters or plain URL's=
                    PinpointDesigns
                    PinpointDesigns
                    0
                    5
                    207

                  • How important is it to canonicalize mobile URLs to desktop URLs?
                    NakulGoyal
                    NakulGoyal
                    0
                    3
                    504

                  • Hash as a Replacement for Absolute URL in Canonical Tags?
                    AlanMosley
                    AlanMosley
                    0
                    4
                    640

                  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