Jump to content

Recommended Posts

Posted

Hello, I'm building my first website, right now I have just one index.html page in public_html, and inside public_html, i created an folder "images" (that have one image). The problem is that google is listing my image folder as "index of" when i google for my website address (you can gooogle by ipvalverde.com ).

 

How can I block this? Not just for google accessing it, but anyone that can type ipvalverde.com/images.

Posted

In your public_html folder, create a .htaccess file with these contents:

 

Options -Indexes

Posted

Thanks man!

But I'm trying to create it but the default cpanel file manager warnings me that ".htaccess" file already exists in public_html folder, but the problem is that I can't see this file through the cpanel manager, how can I open/edit it?

Posted

When opening the cPanel file manager, check the box that says "show hidden files."

Guest
This topic is now closed to further replies.
×
×
  • Create New...