Mobile app version of vmapp.org
Login or Join
Candy875

: What should be in index files in unused subdirectories? What's the best practice for index pages in subdirectories which aren't being used (have no content)? Example root/subfolder/index.html My

@Candy875

Posted in: #Seo #Subdirectory

What's the best practice for index pages in subdirectories which aren't being used (have no content)?

Example

root/subfolder/index.html


My thoughts were to set up a redirect to either the 404 page or the homepage.

10.02% popularity Vote Up Vote Down


Login to follow query

More posts by @Candy875

2 Comments

Sorted by latest first Latest Oldest Best

 

@BetL925

You can remove the index.html file entirely for that location. That will usually cause a 404 message to occur.

Sometimes the server is configured to print a directory list instead. If that is the case, it can usually be disabled with Options -Indexes in the .htaccess file.

10% popularity Vote Up Vote Down


 

@Jamie184

Remove it and let it 404. You can ultimately redirect to the home page or another appropriate page if there is any value to the traffic, but that would have to be a rather high value in my opinion. I find more value in making a clean site with 404's where there is nothing to see. Google prefers 404 over 301 redirect when there is no content. However, Google will also tell you to recover valuable traffic with 301 redirects to satisfy user requests. It is about the user. Low value pages annoy users- let alone search engines discounting the page and sites with too many low value pages. Your call. Do what is best for users first and search engines second. But do not host low value pages if you can.

10% popularity Vote Up Vote Down


Back to top | Use Dark Theme