Jump to content

Rewrite URLs Forces Download of .htm File


Recommended Posts

I am trying to enable the "Rewrite URLs" option under Search Engine Optimization. 

My .htaccess looks like:

<IfModule mod_rewrite.c>
Options -MultiViews
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule \.(js|css|jpeg|jpg|gif|png|ico)(\?|$) /404error.php [L,NC]

RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]

For the most part, it seems to be working correctly. But when I go to IP.Downloads (http://website.com/files/) it doesn't load the application, but instead downloads a file called download.htm

Anything I can do to resolve this?

Link to comment
Share on other sites


This topic is now archived and is closed to further replies.

  • Recently Browsing   0 members

    • No registered users viewing this page.
  • Create New...