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. Javascript changing URL - Thoughts?

    Javascript changing URL - Thoughts?

    Web Design
    3 2 741
    • 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.
    • poolguy
      poolguy last edited by

      So, our developer just created a player at the bottom of this site I work for.  It's not really important what it is.  The thing is, when you go to our home page now, the javascript changes the url from www.site.com to www.site.com/home

      It's not actually redirected or anything (no 301, it's just the javascript doing this), but I'm worried that if someone links back to our site they're going to surely pull that URL to point back to, which is wrong.

      Also, when you go to a category, the URL changes from www.site.com/category to www.site.com/home#category.  Again, it's not a redirect but I'm still worried people will link back to this since it's on the entire site now...

      I'm suggesting that we turn off this new feature until we find a workaround.  I just wanted to confirm with you guys that this is best.

      Thanks

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

        If you want Google etc to treat it as www.site.com then add www.site.com" /> in the head of that page. Then backlinks to www.site.com www.site.com.com/home will; all give link juice to www.site.com . The category page is a different issue in that there is no category page anymore just a reference on the home page. Your developer need to rethink why he would do this sort of layout remapping which makes it harder to get seo value from the pages.

        poolguy 1 Reply Last reply Reply Quote 1
        • poolguy
          poolguy @oznappies last edited by

          I agree, harder to get seo value.  Better to keep things as clean as possible, seo is hard enough as it is...

          1 Reply Last reply Reply Quote 0
          • 1 / 1
          • First post
            Last post
          • Shortened URL is breaking when URL is in Upper Case
            sergeystefoglo
            sergeystefoglo
            0
            2
            265

          • Analytics year to year comparisons when Url extensions change?
            TrentonGreener
            TrentonGreener
            0
            2
            206

          • Pushstate and Infinite Scrolling Article Pages: Is it detrimental to not change URLs as the page is being scrolled?
            JordanLowry
            JordanLowry
            1
            2
            1.2k

          • Looking to remove SSL because it is causing very slow website download speeds. Does WP have a plugin that redirects SSL urls to non SSL urls?
            RosemaryB
            RosemaryB
            0
            3
            389

          • Rebranding & a Url Structure Change
            JaneCopland
            JaneCopland
            0
            4
            1.3k

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

          • Changing URL's for a website redesign
            igor.pinchevskiy
            igor.pinchevskiy
            0
            3
            288

          • Site Change / CMS Change
            Aran_Smithson
            Aran_Smithson
            0
            2
            711

          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