我正在使用Typo3版本4.7.4。当我可以在每个浏览器中访问网站的前端除了IE(在所有版本中)。将自定义.htaccess文件替换为Typo3版本4.7.4的默认.htaccess后,它可以正常工作。然后我比较了两个文件,除了一些更多的配置,我找不到不同的东西。但是,我不确定这些新配置是否已经杀死IE。这是我新的.htaccess配置:
#####################################
### Compression via TYPO3 ###
#####################################
<FilesMatch "\.js\.gzip$">
AddType "text/javascript" .gzip
</FilesMatch>
<FilesMatch "\.css\.gzip$">
AddType "text/css" .gzip
</FilesMatch>
AddEncoding gzip .gzip
##################################################
### Browser caching of resource files ###
##################################################
<FilesMatch "\.(js|css)$">
<IfModule mod_expires.c>
ExpiresActive on
ExpiresDefault "access plus 7 days"
</IfModule>
FileETag MTime Size
</FilesMatch>
########################################
### Settings for mod_rewrite ###
########################################
<IfModule mod_rewrite.c>
RewriteEngine On
### Change this path, if your TYPO3 installation is located in a subdirectory of the website root.
#RewriteBase /
### IMPORTANT: This rule has to be the very first RewriteCond in order to work!
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.+)\.(\d+)\.(php|js|css|png|jpg|gif|gzip)$ $1.$3 [L]
RewriteRule ^fileadmin/(.*/)?_recycler_/ - [F]
RewriteRule ^fileadmin/templates/.*(\.txt|\.ts)$ - [F]
RewriteRule ^typo3conf/ext/[^/]+/Resources/Private/ - [F]
#RewriteRule ^(typo3/|t3lib/|fileadmin/|typo3conf/|typo3temp/|uploads/|favicon\.ico) - [L]
RewriteRule ^typo3$ typo3/index_re.php [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-l
RewriteRule .* index.php [L]
############################################################################
### Redirect all users directly to the https version of the page ###
############################################################################
RewriteRule ^(.+)\.(\d+)\.(php|js|css|png|jpg|gif|gzip)$ $1.$3 [L]
RewriteRule ^(typo3/|t3lib/|fileadmin/|typo3conf/|typo3temp/|uploads/|favicon\.ico) - [L]
RewriteRule ^typo3$ typo3/index_re.php [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-l
RewriteRule .* index.php [L]
</IfModule>
#############################
### Miscellaneous ###
#############################
Options -Indexes
########################################################
### Disable *.ts files viewing from Frontend ###
########################################################
<FilesMatch "\.(ts)$">
order deny,allow
deny from all
</FilesMatch>
任何想法都将不胜感激。 感谢
答案 0 :(得分:0)
感谢maholtz的帮助。
#####################################
### Compression via TYPO3 ###
#####################################
<FilesMatch "\.js\.gzip$">
AddType "text/javascript" .gzip
</FilesMatch>
<FilesMatch "\.css\.gzip$">
AddType "text/css" .gzip
</FilesMatch>
AddEncoding gzip .gzip
##################################################
### Browser caching of resource files ###
##################################################
<FilesMatch "\.(js|css)$">
<IfModule mod_expires.c>
ExpiresActive on
ExpiresDefault "access plus 7 days"
</IfModule>
FileETag MTime Size
</FilesMatch>
########################################
### Settings for mod_rewrite ###
########################################
<IfModule mod_rewrite.c>
RewriteEngine On
### Change this path, if your TYPO3 installation is located in a subdirectory of the website root.
#RewriteBase /
### IMPORTANT: This rule has to be the very first RewriteCond in order to work!
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.+)\.(\d+)\.(php|js|css|png|jpg|gif|gzip)$ $1.$3 [L]
RewriteRule ^fileadmin/(.*/)?_recycler_/ - [F]
RewriteRule ^fileadmin/templates/.*(\.txt|\.ts)$ - [F]
RewriteRule ^typo3conf/ext/[^/]+/Resources/Private/ - [F]
#RewriteRule ^(typo3/|t3lib/|fileadmin/|typo3conf/|typo3temp/|uploads/|favicon\.ico) - [L]
RewriteRule ^typo3$ typo3/index_re.php [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-l
# RewriteRule .* index.php [L]
############################################################################
### Redirect all users directly to the https version of the page ###
############################################################################
RewriteRule ^(.+)\.(\d+)\.(php|js|css|png|jpg|gif|gzip)$ $1.$3 [L]
RewriteRule ^(typo3/|t3lib/|fileadmin/|typo3conf/|typo3temp/|uploads/|favicon\.ico) - [L]
RewriteRule ^typo3$ typo3/index_re.php [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-l
RewriteRule .* index.php [L]
</IfModule>
#############################
### Miscellaneous ###
#############################
Options -Indexes
########################################################
### Disable *.ts files viewing from Frontend ###
########################################################
<FilesMatch "\.(ts)$">
order deny,allow
deny from all
</FilesMatch>
请注意,错误在# RewriteRule .* index.php [L]