1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

Weird happenings in Firefox since I changed my .htaccess

Discussion in 'Apache' started by kyle422, Apr 29, 2005.

  1. #1
    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):

     
    kyle422, Apr 29, 2005 IP
  2. kyle422

    kyle422 Peon

    Messages:
    290
    Likes Received:
    8
    Best Answers:
    0
    Trophy Points:
    0
    #2
    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.
     
    kyle422, Apr 29, 2005 IP
  3. exam

    exam Peon

    Messages:
    2,434
    Likes Received:
    120
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Do you still see the problem when you remove the .htaccess file?
     
    exam, Apr 29, 2005 IP
    kyle422 likes this.
  4. minstrel

    minstrel Illustrious Member

    Messages:
    15,082
    Likes Received:
    1,243
    Best Answers:
    0
    Trophy Points:
    480
    #4
    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.
     
    minstrel, Apr 29, 2005 IP
  5. kyle422

    kyle422 Peon

    Messages:
    290
    Likes Received:
    8
    Best Answers:
    0
    Trophy Points:
    0
    #5
    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.
    :D
     
    kyle422, Apr 29, 2005 IP
  6. air

    air Active Member

    Messages:
    359
    Likes Received:
    8
    Best Answers:
    0
    Trophy Points:
    90
    #6
    Some URL ?
     
    air, Apr 29, 2005 IP
  7. kyle422

    kyle422 Peon

    Messages:
    290
    Likes Received:
    8
    Best Answers:
    0
    Trophy Points:
    0
    #7
    The problem was solved air. :)
     
    kyle422, Apr 29, 2005 IP
  8. J.D.

    J.D. Peon

    Messages:
    1,198
    Likes Received:
    65
    Best Answers:
    0
    Trophy Points:
    0
    #8
    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.
     
    J.D., Apr 29, 2005 IP
  9. kyle422

    kyle422 Peon

    Messages:
    290
    Likes Received:
    8
    Best Answers:
    0
    Trophy Points:
    0
    #9
    Thanks J.D.
    Changed the code.
     
    kyle422, Apr 29, 2005 IP