codename25 Posted October 23, 2016 Posted October 23, 2016 Hi, My website in Heliohost Steive Server is showing the directory listing when i go into a folder (www.xyz.com/folder). The directory listing gives off all the files in that folder. How can i remove this.
nyten Posted October 23, 2016 Posted October 23, 2016 Hey,you can add the option Options -Indexes to the .htaccess file in your folder. This will disable the directory listing function for this folder and all subfolders. 1
codename25 Posted October 24, 2016 Author Posted October 24, 2016 Thank You. It's now forbidden. But it also shows an internal error 404 like this.... ForbiddenYou don't have permission to access /images/ on this server.Additionally, a 404 Not Found error was encountered while trying to use an Error Document to handle the request. Can you please tell me the reason. Thank you.
wolstech Posted October 24, 2016 Posted October 24, 2016 That's just saying it can't find a custom error page for the forbidden error. It's normal if you don't have one set up. If you'd rather show a pretty forbidden page that matches your site, you can set up some custom error pages in cPanel. You specify them by their error code (e.g. 404, 403, 500, etc.). That can be done here: http://stevie.heliohost.org:2082/frontend/x3/err/index.html
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now