Greenguy's Board


Go Back   Greenguy's Board > Programming & Scripting
Register FAQ Calendar Today's Posts

Reply
 
Thread Tools Search this Thread Rate Thread Display Modes
Old 2005-02-01, 05:07 PM   #1
grzepa
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.
grzepa is offline   Reply With Quote
Old 2005-02-01, 05:09 PM   #2
Cleo
Subversive filth of the hedonistic decadent West
 
Cleo's Avatar
 
Join Date: Mar 2003
Location: Southeast Florida
Posts: 27,936
It affects all directories under it.
__________________
Free Rides on Uber and Lyft
Uber Car: uberTzTerri
Lyft Car: TZ896289
Cleo is offline   Reply With Quote
Old 2005-02-01, 05:11 PM   #3
cd34
a.k.a. Sparky
 
cd34's Avatar
 
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
cd34 is offline   Reply With Quote
Old 2005-02-15, 02:52 PM   #4
ronnie
Wheither you think you can or you think you can't, Your right.
 
Join Date: Jun 2004
Location: midwest
Posts: 2,274
Send a message via ICQ to ronnie
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
ronnie is offline   Reply With Quote
Old 2005-02-16, 02:14 PM   #5
grzepa
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!
grzepa is offline   Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 12:21 PM.


Mark Read
Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
© Greenguy Marketing Inc