ipvalverde Posted November 27, 2011 Share Posted November 27, 2011 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. Link to comment Share on other sites More sharing options...
Guest xaav Posted November 27, 2011 Share Posted November 27, 2011 In your public_html folder, create a .htaccess file with these contents: Options -Indexes Link to comment Share on other sites More sharing options...
ipvalverde Posted November 27, 2011 Author Share Posted November 27, 2011 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? Link to comment Share on other sites More sharing options...
Guest xaav Posted November 27, 2011 Share Posted November 27, 2011 When opening the cPanel file manager, check the box that says "show hidden files." Link to comment Share on other sites More sharing options...
ipvalverde Posted November 27, 2011 Author Share Posted November 27, 2011 Oh! That is it! My bad, man, I didn't see that! Problem solved! Link to comment Share on other sites More sharing options...
Recommended Posts