: Does redirecting root folder to subdirectory affect SEO? I'm developing a very simple static website for my band (only four pages) and I'm currently struggling with structured data markup. Right
I'm developing a very simple static website for my band (only four pages) and I'm currently struggling with structured data markup.
Right now my website hierarchy looks like this:
/
/home/
/music/
/photos/
/bio/
And in the file /index.html I'm using a javascript in the head to redirect to the home page:
<script>
document.location = "home"
</script>
No doubt that's working, but I'm not sure it's a good thing.
I'm worried this will affect in a bad way results on google search. Should I place my home page in the root directory or is it ok like this? It's better to exclude the root directory from the sitemap?
More posts by @Martha676
1 Comments
Sorted by latest first Latest Oldest Best
For SEO it is better to do it on a server level and make sure to do a 301 redirect as this is much better for SEO.
Of course I don't know what response code a JS redirect will return.
Curl -I domain.com
The above will tell you what response code you're getting i.e 200, 301, 302
Terms of Use Create Support ticket Your support tickets Stock Market News! © vmapp.org2024 All Rights reserved.