Forum Moderators: phranque

Message Too Old, No Replies

.htaccess on Windows 2003 server

         

debbiejr

11:36 am on Feb 1, 2005 (gmt 0)

10+ Year Member



I hope I have posted this in the right forum, hopefully it will get moved if I havent.

Someone recommended this board to me as a great place to get help so here goes...

I am looking for a script that will do what .htaccess does, only on a Windows 2003 server

Basically we are trying to restrict access to a directory to two domains only

This is the original .htacces, but (I have since found out) it doesnt work on a windows server

RewriteEngine on
RewriteOptions inherit
RewriteCond %{HTTP_REFERER} !^http://([a-z0-9-]+\.)*domain1.com(:80)*/ [NC]
RewriteCond %{HTTP_REFERER} !^http://([a-z0-9-]+\.)*domain2.com(:80)*/ [NC]
RewriteRule .* - [F]

Thank you :)

txbakers

2:20 pm on Feb 7, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



For Windows there is a paid program called "isapi_rewrite" which does the same thing you are trying to do.

Windows doesn't have an htaccess file.

debbiejr

3:07 pm on Feb 7, 2005 (gmt 0)

10+ Year Member



excellent, I will go and check that product out now.
Thank you :)