Take the 2-minute tour ×
Webmasters Stack Exchange is a question and answer site for pro webmasters. It's 100% free, no registration required.

Simple question.

A folder, lets say for example abc.com/images/ Is being displayed on google as "index of", which I don't like.

The contents of this folder are important, and it is important that they get indexed, but I don't want to see the "index of" page.

It is unclear to me whether selecting the "No Indexing" in cpanel will remove the contents from indexing as well.

http://docs.cpanel.net/twiki/bin/view/AllDocumentation/CpanelDocs/IndexManager

What should I do anyways, Redirect to another page? What's a common practice?

share|improve this question

1 Answer 1

up vote 2 down vote accepted

The "No Indexing" that you are seeing in cpanel controls whether or not the web server creates a document for the directory that lists all the files. Selecting "no indexing" will only prevent the directory contents from being listed but will not effect whether the contents of the directory can be crawled by search engines.

If you don't use the "no indexing" option:

  • /images/ -- crawlable, list all files in the directory
  • /images/test.jpg -- crawlable, may be included in Google's index

If you do use the "no indexing" option:

  • /images/ -- not crawlable, not authorized error, contents not listed
  • /images/test.jpg -- crawlable, may be included in Google's index

If you wish to redirect to another page rather than show an error for the directory, that is also fine. You would need redirect index.html to another url. You could do so by putting a redirect directive into .htaccess:

redirect permanent /index.html http://example.com/
share|improve this answer
    
1st of all, thanks for answering. What's a common practice? Should the redirect remove the "index of" from SE results? –  guisasso Mar 4 '13 at 17:40
    
A redirect would remove the "index of" page from search results, so would the "no indexing" setting. Both are common. –  Stephen Ostermiller Mar 4 '13 at 17:47

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.