Reputation: 99
I use magento and It worked fine.Then I migrated my website to another hosting and when I go to Url www.mywebsite.com/skin
or some folder and it show my website folder to everyone
It should be Show 404 error page
in my custom theme
Please help me how to redirect www.mywebsite.com/skin
to my 404 error page
theme
Sorry for my bad english and I'm very new to website coding.
Upvotes: 1
Views: 1625
Reputation: 3622
put a .htaccess
file in any folder you want to restrict it to the user and paste below code at the top.
deny from all
Upvotes: 0
Reputation: 4237
Add this code in .htaccess. It blocks the folders to be seen if no index file inside it.
Options All -Indexes
Upvotes: 6