4 users online. Create an account or sign in to join them.Users
IE saving the page instead of displaying it
This is an open discussion with 5 replies, filed under General.
Search
Hm, maybe wrong Content type. Can you check your http headers?
Your content type should be something like Content-Type:text/html; charset=utf-8 but it’s only set to the charset encoding.
Thanks. I fixed the above issue, but the problem persists :( Already 2 days of frustration ...
Looking at Language redirect rule from .htaccess
RewriteRule ^(ro|en)-?()?/(.*/?)$ index.php?language=$1®ion=$2&symphony-page=$3&%{QUERY_STRING} [L]
I can't stop wondering why does
xanderadvertising.mcas.ro/en
work and
xanderadvertising.mcas.ro
doesn't ...
You've got a lot of rules modifying headers there, try taking out the compression, and then the other rules to see if that makes a difference.
I just tested it today and it's working now ... ??
I think it was related to Content-type header and cache period which is set to 1 day (86400, Cachelite default). Due to miss-formed Content-type: charset=utf-8 header, somehow IE was messed up, and atm, > 1 day later, it's working.
Thanks for help.
Create an account or sign in to comment.
I found that Internet Explorer tries to save the landing page instead of opening it (other browsers work fine). Here's the link:
xanderadvertising.mcas.ro
I'm trying to improve site performance by manipulating .htaccess and HTTP headers and I think there's a conflict somewhere.
Other pages are working well:
xanderadvertising.mcas.ro/en
Any ideas why IE behaves like that?
I can't even debug it. IE instantly tries to save it. The debugger won't even get to first line of PHP code.
Here's the .htaccess:
### Symphony 2.2.x ### Options +FollowSymlinks -Indexes <IfModule mod_rewrite.c> RewriteEngine on RewriteBase / ### SECURITY - Protect crucial files RewriteRule ^manifest/(.*)$ - [F] RewriteRule ^workspace/utilities/(.*).xsl$ - [F] RewriteRule ^workspace/pages/(.*).xsl$ - [F] RewriteRule ^(.*).sql$ - [F] RewriteRule (^|/). - [F] ### DO NOT APPLY RULES WHEN REQUESTING "favicon.ico" RewriteCond %{REQUEST_FILENAME} favicon.ico [NC] RewriteRule .* - [S=14] ### IMAGE RULES RewriteRule ^image/(.+.(jpg|gif|jpeg|png|bmp))$ extensions/jit_image_manipulation/lib/image.php?param=$1 [L,NC] ### STATIC FILES COMPRESSOR BEGIN REWRITE RewriteRule ^.*/SFC.([a-z]+)$ extensions/static_files_compressor/lib/compress.php?mode=$1&%{QUERY_STRING} [L] ### STATIC FILES COMPRESSOR END ### CHECK FOR TRAILING SLASH - Will ignore files RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_URI} !/$ RewriteCond %{REQUEST_URI} !(.*)/$ RewriteRule ^(.*)$ $1/ [L,R=301] ### URL Correction RewriteRule ^(xandercms/)?index.php(/.*/?) $1$2 [NC] ### ADMIN REWRITE RewriteRule ^xandercms/?$ index.php?mode=administration&%{QUERY_STRING} [NC,L] RewriteCond %{REQUEST_FILENAME} !-d RewriteCond %{REQUEST_FILENAME} !-f RewriteRule ^xandercms(/(.*/?))?$ index.php?symphony-page=$1&mode=administration&%{QUERY_STRING} [NC,L] ### LANGUAGE REDIRECT RULES start RewriteCond %{REQUEST_FILENAME} !-d RewriteCond %{REQUEST_FILENAME} !-f RewriteRule ^(ro|en)-?()?/(.*/?)$ index.php?language=$1®ion=$2&symphony-page=$3&%{QUERY_STRING} [L] ### LANGUAGE REDIRECT RULES end ### FRONTEND REWRITE - Will ignore files and folders RewriteCond %{REQUEST_FILENAME} !-d RewriteCond %{REQUEST_FILENAME} !-f RewriteRule ^(.*/?)$ index.php?symphony-page=$1&%{QUERY_STRING} [L] </IfModule> ###### <IfModule mod_deflate.c> #Compress js css and fonts AddOutputFilter DEFLATE js css #The following line also enables compression by file content type, for the following list of Content-Type:s AddOutputFilterByType DEFLATE text/html text/plain text/xml application/xml #The following lines are to avoid bugs with some browsers BrowserMatch ^Mozilla/4 gzip-only-text/html BrowserMatch ^Mozilla/4.0[678] no-gzip BrowserMatch bMSIE !no-gzip !gzip-only-text/html </IfModule> <IfModule mod_headers.c> ### remove ETag Header unset ETag FileETag None ### Set long-term expires <FilesMatch "(?i)^.*.(ico|flv|jpg|jpeg|png|gif|js|css)$"> Header set Last-Modified "Wed, 25 Jan 2011 00:00:00 GMT" Header set Expires "Fri, 21 Dec 2012 00:00:00 GMT" Header set Cache-Control "public, no-transform" </FilesMatch> <FilesMatch ".(js|css|xml|gz)$"> Header append Vary Accept-Encoding </FilesMatch> </IfModule>Thank you.