Hostgator Exclusive : 20% discount coupon code
Click here to avail the free hostgator coupon code
Web Hosting : Apache – Deny directory and all its sub directories
By hostgator in Discuss Hosting
Host unlimited blogs, websites for $4.95 only with this web host
Register domain names for less than a dollar here
Hostgator and Bluehost are our best webhosts and godaddy.com is the best domain registrar.
This web hosting thread started by JoyceBabu on 03 December 2008
want to disallow access to some directories and all its sub directories. I tried putting
Code:Order allow,deny
deny from allin the .htaccess file. But that protects on the current directory and not its sub directories.
I read in some forums that using the section might help. But that requires the complete path to be included. I want to copy this code to several places, hence I don’t want to type the path to all locations.
How can I do this? For the time being, I have knowingly introduced an error in the .htaccess file so that all the requests to these forbidden directories are returned with an Internal Server Error.
Discuss this at WHT or read more about bluehost and hostgator
This web hosting blog is proudly hosted with reliable Hostgator webhosting for only one cents through this hostgator coupon. If you're new here, you may want to subscribe to this web hosting RSS feed








