View Single Post
Old 2003-09-05, 06:28 PM   #1
JanTM
Hello, is this President Clinton? Good! I figured if anyone knew where to get some tang it would be you
 
JanTM's Avatar
 
Join Date: Apr 2003
Location: Denmark
Posts: 446
Send a message via ICQ to JanTM
Question htaccess gurus...

I have this htaccess file in place at one of my domains...

AuthType Basic
RewriteEngine On
RewriteCond %{HTTP_REFERER} !^http://www.amanogawa-sfm.com/ [NC]
RewriteCond %{HTTP_REFERER} !^http://amanogawa-sfm.com/ [NC]
RewriteCond %{HTTP_REFERER} !^http://www.amanogawa-sfm.com [NC]
RewriteCond %{HTTP_REFERER} !^http://amanogawa-sfm.com [NC]
RewriteRule /* http://www.amanogawa-sfm.com/index.shtml [R,L]

It is placed in a subdir on the server along with a bunch of Adobe PDF files and one html page with links to these PDF files. However when I click on the links to open the PDF files I get an error in Acrobat Reader saying "File does not start with %PDF". Removing the htaccess... and everything works fine. Whats up with that?
__________________
Tittius Maximus - Retired
JanTM is offline   Reply With Quote