![]() |
Is it possible to -->
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. |
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 |
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! |
All times are GMT -4. The time now is 09:22 AM. |
Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
© Greenguy Marketing Inc