0

私は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>

任意のアイデアをいただければ幸いです。ありがとう

4

1 に答える 1

0

助けてくれてありがとうマホルツ。

#####################################
###     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]

于 2012-09-05T07:40:34.047 に答える