Mobile app version of vmapp.org
Login or Join
Martha676

: 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

@Martha676

Posted in: #GoogleSearch #Html #Redirects #StructuredData

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?

10.01% popularity Vote Up Vote Down


Login to follow query

More posts by @Martha676

1 Comments

Sorted by latest first Latest Oldest Best

 

@Bethany197

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

10% popularity Vote Up Vote Down


Back to top | Use Dark Theme