|
2005-02-01, 05:07 PM | #1 |
You can now put whatever you want in this space :)
Join Date: Nov 2003
Posts: 980
|
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.
|
2005-02-01, 05:09 PM | #2 |
Subversive filth of the hedonistic decadent West
Join Date: Mar 2003
Location: Southeast Florida
Posts: 27,936
|
It affects all directories under it.
|
2005-02-01, 05:11 PM | #3 |
a.k.a. Sparky
Join Date: Sep 2004
Location: West Palm Beach, FL, USA
Posts: 2,396
|
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.
__________________
SnapReplay.com a different way to share photos - iPhone & Android |
2005-02-15, 02:52 PM | #4 |
Wheither you think you can or you think you can't, Your right.
|
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 |
2005-02-16, 02:14 PM | #5 |
You can now put whatever you want in this space :)
Join Date: Nov 2003
Posts: 980
|
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! |
|
|