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. Web Design
    4. 301 Redirect Issue for URL with # and !

    301 Redirect Issue for URL with # and !

    Web Design
    4 3 2.5k
    • 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.
    • emarketexperts
      emarketexperts last edited by

      Hi All,

      We had a WIX website and now moved to Wordpress. I m having issue while doing redirecting from old URL  to new URL.

      Example:

      Old Url:  http://www.firsttraffic.com.au/#!traffic-management/ccfn

      New Url:  http://www.firsttraffic.com.au/our-services/traffic-management/

      I tried different wordpress plugin but nothing works. I m thinking its due to the # . But How can I to redirection for URL like this .

      Thanks

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

        Yes you are correct it is due to the #. Google does not index anything after the #so if you redirect to itfrom their perspective you might as well be doing nothing. The canonical tag could help. But more importantly why would you want to redirect to a URL with a #in it?

        Google only sees this URL as

        http://www.firsttraffic.com.au/

        NOT http://www.firsttraffic.com.au/#!traffic-management/ccfn

        http://www.firsttraffic.com.au/our-services/traffic-management/

        you could redirect a new URL or create a substitute URL but if your redirecting is even successfully with a # in you're URL

        Makes no sense what I would do is re-created or simply find a different URL to redirect offer to feel BU the homepage is the correct URL Yoast Wordpress SEO premium might be

        Able to do it I know that you can do it server-side however tell me what stack you're running and I will send you the instructions on how to redirect. But know this your redirect you know if the homepage Google looks at it that way

        all the best, Thomas

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

          Thomas is correct.  You cannot redirect from an URL with a hashtag in it (although it is possible to redirect to an URL with a hastag using escape fragments).  Unfortunately, in your case it is the former, and therefore not possible.

          1 Reply Last reply Reply Quote 2
          • BlueprintMarketing
            BlueprintMarketing last edited by

            Wix is no fun

            you can try this

            https://www.wix.com/support/html5/search-engine-optimization/advanced-seo-settings/kb/301-redirects#anchor-creating-custom-urls-for-

            If you want google to use it

            Options +FollowSymlinks
            RewriteEngine on
            rewriterule ^#!traffic-management/ccfn(.*)$ http://www.firsttraffic.com.au/traffic-management/ccfn$1 [r=301,nc]

            https://support.google.com/webmasters/answer/174992?hl=en

            http://www.firsttraffic.com.au/?_escaped_fragment_traffic-management/ccfn

            http://www.firsttraffic.com.au/#!traffic-management/ccfn

            RewriteEngine On
            RewriteRule ^traffic-management/ccfn$ /#!traffic-management/ccfn [L]

            RewriteEngine On

            RewriteRule ^([^-]*)$ /?escaped_fragment=$1 [L]

            1 Reply Last reply Reply Quote 1
            • 1 / 1
            • First post
              Last post
            • Does redirecting the existing URLs in the website without reducing our current rankings? The new website runs on the bubble, so it seems there is no provisions to redirect the existing URLs to this platform?
              0
              1
              51

            • Site redesign - 301 Redirects
              julie-getonthemap
              julie-getonthemap
              0
              4
              187

            • 302 redirects, canonicalise or redirect (301)?
              eLab_London
              eLab_London
              0
              5
              754

            • 301 Redirect all pictures when moving to a new site?
              DirkC
              DirkC
              0
              4
              4.1k

            • 301 htaccess redirect or 301 HTTP DNS Redirect
              OlegKorneitchouk
              OlegKorneitchouk
              0
              2
              1.4k

            • Advanced 301 Redirects
              Travis_Bailey
              Travis_Bailey
              0
              3
              254

            • Is it necessary to Remove 301 redirects from Wordpress after removing the 404 url from Google Webmaster?
              JCurrier
              JCurrier
              0
              3
              252

            • 301 Redirect ! Joomla Pages, Already ranking. ( just wanted to change the url
              Highland
              Highland
              0
              4
              700

            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