Navigation

    APPDRAG Community

    • Register
    • Login
    • Search
    • Categories
    • Recent
    • Popular

    REMINDER

    Please be respectful of all AppDragers! Keep it really civil so that we can make the AppDrag community of builders as embracing, positive and inspiring as possible.

    SOLVED Duplicate Root Domain and index.html versions

    Cloud CMS (Pagebuilder, Blog, Shop, Newsletters, Code Editor)
    2
    4
    82
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • K
      Kirk Brown last edited by

      Hello,

      I am having an issue with the indexing of my website outdoorsplendor.com. When someone visits https://www.outdoorsplendor.com/index.html it does not redirect to the root domain. In google's eyes, the home page looks like duplicated content because there is a root version and an index.html version.

      How can I make it so that if someone lands on the index.html version, it will redirect to the root version?

      Joseph Benguira 1 Reply Last reply Reply Quote 0
      • Joseph Benguira
        Joseph Benguira @Kirk Brown last edited by

        Hi @kirk-brown, Google will select only 1 version in the end

        you can see in google results, that google is presenting the version without index.html
        https://www.google.com/search?q=site%3Aoutdoorsplendor.com

        1 Reply Last reply Reply Quote 0
        • K
          Kirk Brown last edited by

          Hi Joseph,

          For my other website I built on Appdrag, when you type in https://www.kirkslawncare.com/index.html, it immediatley redirects the user to the root domain.

          When you do the same for the Outdoor Splendor website in questions, it does not redirect. https://www.outdoorsplendor.com/index.html

          What is the difference between the two appdrag websites and how can I get outdoor splendor to redirect to the root domain?

          Joseph Benguira 1 Reply Last reply Reply Quote 0
          • Joseph Benguira
            Joseph Benguira @Kirk Brown last edited by

            Hi @kirk-brown, I tried both urls and in both case I'm not redirected byt stays on the /index.html url.

            one way to do that is to add a block of script if your footer with this content

            if (window.location.pathname.endsWith('/index.html')) {
              window.location.href = window.location.origin + '/';
            }
            
            1 Reply Last reply Reply Quote 0
            • First post
              Last post