Greenguy's Board

Greenguy's Board (http://www.greenguysboard.com/board/index.php)
-   Programming & Scripting (http://www.greenguysboard.com/board/forumdisplay.php?f=15)
-   -   Is it possible to --> (http://www.greenguysboard.com/board/showthread.php?t=16015)

grzepa 2005-02-01 05:07 PM

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.

Cleo 2005-02-01 05:09 PM

It affects all directories under it.

cd34 2005-02-01 05:11 PM

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 02: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 02: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!


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