Forum Moderators: coopster & phranque

Message Too Old, No Replies

htaccess file help needed

shuts down app if other htaccess added

         

Mike McKnight

4:12 pm on Jan 20, 2003 (gmt 0)

10+ Year Member



I have an affiliate program software app that is no longer supported by company I bought it from, so I could use some help. That program contains the following htaccess file.
This htaccess file causes a password box to come up for
my affiliate members to log in to check sales etc.
This program is in it's own directory like so:

[mydomain.com...]
or
/usr/www/users/myname/al

I want to use another htaccess file in the myname (root) dir
to block some robots and picture hot linkers, but when ever I add the other htaccess file the app program's htaccess
file causes an error that won't let the cgi script run
for that app.
____________________________________________
affiliate htaccess file below
---------------------------------------------
IndexIgnore .htaccess */.?* *~ *# */HEADER* */README* */_vti*

<Limit PUT DELETE>
order deny,allow
deny from all
</Limit>
<Limit GET POST>
order deny,allow
allow from all
</Limit>
DirectoryIndex credits.html
Options ExecCGI
#AddHandler cgi-script .cgi
<Files .htaccess>
deny from all
</Files>
______________________________________
I have tried to add the "allowoverides All" directive
to this file, but get a 500 server error
_____________________________________
Here is the picture blocking file I want to add, it
works, but also cause a conflict with my affilate
program.
_______________________________________
RewriteEngine on
RewriteBase /
RewriteCond %{HTTP_REFERER}!^$
RewriteCond %{HTTP_REFERER}!^http://www.mydomain.com.*$ [NC]
RewriteCond %{HTTP_REFERER}!^http://mydomain.com.*$ [NC]
RewriteRule (\.[gG][iI][fF])¦(\.[jJ][pP][eE]?[gG])¦(\.[mM][iI][dD][iI]?)$ - [F]

any help is much appreciated
thanks, Mike

hakre

10:55 pm on Jan 20, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



hi mike!

is the .htaccess of the affiliate program placed in the affilate prog directory? if not, why don't you put it in there? this might be a solution for your prob.

Mike McKnight

2:51 pm on Jan 23, 2003 (gmt 0)

10+ Year Member



the htaccess file for the affiliate program is in the
directory where the affiliate prog files are stored.
thanks for your reply.