View Full Version : Is it possible to -->
grzepa
2005-02-01, 06:07 PM
upload .htaccess in one place on the server and it'll work for the whole domain ? Or do I have to manually upload .htacess to every folder ( ie every of my 160 free sites) ? I recently changed host and at the old one there was cpanel with a feature to enable hotlink protection. My present host (webair) is charging $60 for installing hotlink protection script.
It affects all directories under it.
It can be done.
if you set the DocumentRoot in apache's main config to
/var/www
and your domains are in /var/www/domain.com
you can put in an .htaccess in /var/www and it will apply itself to the directories below.
If they are using normal apache chroot environments, then you probably need to ftp the .htaccess to the root of each directory -- unless you can edit the apache configs. Then you could add
Include /etc/blah/hotlinkhtaccess
in each virtual config.
ronnie
2005-02-15, 03:52 PM
As said above you should be able to upload it to your root and will work for everything below.
Also you can override any directory with another .htaccess file within the directory, if you need something done different in another place.
ronnie
grzepa
2005-02-16, 03:14 PM
Damn I thought I said thanks to the repliers , sorry for leaving this thread without saying thanks !
I solved this issue allready, thanks for the replys!
vBulletin® v3.8.1, Copyright ©2000-2026, Jelsoft Enterprises Ltd.