I made some changes to my .htaccess file. Now most of my internal links when clicked in Firefox bring up a download window instead of displaying the page. here is my .htacces any help would be appretiated. AddType application/x-httpd-php .htm .html <IfModule mod_rewrite.c> RewriteEngine On RewriteCond %{HTTP_REFERER} ^http://www\.)?coresat.com.*$[OR] RewriteCond %{HTTP_REFERER} pharmacy [NC,OR] RewriteCond %{HTTP_REFERER} viagra [NC,OR] RewriteCond %{HTTP_REFERER} porn [NC,OR] RewriteCond %{HTTP_REFERER} casino [NC,OR] RewriteCond %{HTTP_REFERER} penis [NC,OR] RewriteCond %{HTTP_REFERER} gambling [NC,OR] RewriteCond %{HTTP_REFERER} phentermine [NC,OR] RewriteCond %{HTTP_USER_AGENT} ^LWP* [NC,OR] RewriteCond %{HTTP_USER_AGENT} ^Teleport [NC,OR] RewriteCond %{HTTP_USER_AGENT} ^Wget [NC,OR] RewriteCond %{HTTP_USER_AGENT} ^lwp* [NC] RewriteRule ^.? - [F] RewriteBase / RewriteCond %{REQUEST_FILENAME} ^(.*).htm [NC,OR] RewriteCond %{REQUEST_FILENAME} ^(.*).html [NC] RewriteCond %{HTTP_HOST} !^www\.mysite\.com [NC] RewriteRule ^(.*) http://www.mysite.com/$1 [L,R=301] ErrorDocument 404 /custom404.htm </IfModule> Code (markup):
Well, strange thing is that I changed my .htaccess back to how it was before I had any issues and it still is messed up. When I first noticed the problem in Firefox it was just a few navigation links that would bring up the download window. Now every single link is bringing up the download window. I'm starting think something evil is at play here. Any ideas.
Try re-installing Firefox. There have been other stories about FF becoming corrupted in strange ways -- it may be just a coincidence that it happened after changing your .htaccess file. I can't see how the .htaccess changes would affect anything except the site it resides on.
I just got back from seeing the hitchhikers guide to the galaxy, very boring. Anyhow I figured out what happened. Something got screwed up from a file that was being called from the previous code in the .htaccess. It was cached in Firefox. All I had to do to resolve it was clear the cache. I spend about 3.5 hours trying to fix the .htaccess. My girlfriend was soooo pissed because we had planned to go to an earlier movie. Of course it would be something so simple. I didn't have time to post that I fixed it because all my passwords were erased well I cleared the cache, cookies, and history, and we were running late for the showtime.
FYI, you are missing a parenthesis. Should be RewriteCond %{HTTP_REFERER} ^http://[color=red]([/color]www\.)?coresat.com.*$[OR] Also, domain names are not case-sensitive (URL is, though), so you might want to add NC here as well. J.D.