REMINDER
SOLVED Duplicate Root Domain and index.html versions
-
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?
-
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 -
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?
-
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 + '/'; }