Php .htaccess在Internet Explorer中不工作

Php .htaccess在Internet Explorer中不工作,php,apache,.htaccess,mod-rewrite,Php,Apache,.htaccess,Mod Rewrite,我正在使用.htaccess创建一个安全的网站。在其他浏览器中一切正常,但在Internet Explorer中该站点不工作。显示404错误。请帮助我,我对访问问题不太了解 RewriteEngine On #RewriteCond %{HTTPS} off # First rewrite to HTTPS: # Don't put www. here. If it is already there it will be included, if not # the subsequent ru

我正在使用.htaccess创建一个安全的网站。在其他浏览器中一切正常,但在Internet Explorer中该站点不工作。显示404错误。请帮助我,我对访问问题不太了解

RewriteEngine On

#RewriteCond %{HTTPS} off
# First rewrite to HTTPS:
# Don't put www. here. If it is already there it will be included, if not
# the subsequent rule will catch it.
#RewriteRule .* http://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
# Now, rewrite any request to the wrong domain to use www.

RewriteCond %{SERVER_PORT} 80
RewriteCond %{HTTP_HOST} !^www\.
RewriteRule .* http://www.%{HTTP_HOST}%{REQUEST_URI} [L,R=301]

RewriteCond %{REQUEST_METHOD} ^TRACE
RewriteRule ^ - [F]

RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-l

RewriteRule ^(.+)$ index.php?url=$1 [QSA,L]

RewriteCond %{HTTP_REFERER} !^http(s)?://(www\.)?localhost [NC]
RewriteRule \.(jpg|jpeg|png|gif)$ https://openclipart.org/image/240px/svg_to_png/234001/no_glass_cameras.png [NC,R,L]

RewriteCond %{REQUEST_METHOD} ^TRACE
RewriteRule ^ - [F]

Header set X-Frame-Options SAMEORIGIN
ServerSignature Off

# Disable Directory Browsing
Options All -Indexes

# Deny php direct accessing
<Files *.php>
    Order Deny,Allow
    Deny from all
    Allow from 127.0.0.1
</Files>

<Files index.php>
    Order Allow,Deny
    Allow from all
</Files>

# DENY CODE

#<Files ~ "^.*">
#  Deny from all
#</Files>

#<Files ~ "^index\.php|css|js|.*\.png|.*\.jpg|.*\.gif|.*\.pdf">
#  Allow from all
#</Files>


#Header always edit Set-Cookie (.*) "$1; HTTPOnly; Secure"
重新编写引擎打开
#重写条件%{HTTPS}关闭
#首先重写到HTTPS:
#不要把www.放在这里。如果已经存在,将包括在内,如果没有
#随后的规则将捕获它。
#重写规则。*http://%{http_HOST}%{REQUEST_URI}[L,R=301]
#现在,将任何请求重写到错误的域以使用www。
重写cond%{SERVER_PORT}80
重写cond%{HTTP_HOST}^www\。
重写规则。*http://www.%{HTTP_HOST}%{REQUEST_URI}[L,R=301]
重写COND%{REQUEST_METHOD}^TRACE
重写规则^-[F]
重写cond%{REQUEST_FILENAME}-D
重写cond%{REQUEST_FILENAME}-F
重写cond%{REQUEST_FILENAME}-L
重写规则^(+)$index.php?url=$1[QSA,L]
重写cond%{HTTP_REFERER}^http(s)?:/(www\)?本地主机[NC]
重写规则\(jpg | jpeg | png | gif)$https://openclipart.org/image/240px/svg_to_png/234001/no_glass_cameras.png [NC,R,L]
重写COND%{REQUEST_METHOD}^TRACE
重写规则^-[F]
标题集X-Frame-Options SAMEORIGIN
服务器签名关闭
#禁用目录浏览
选项所有-索引
#拒绝php直接访问
命令拒绝,允许
全盘否定
允许从127.0.0.1开始
命令允许,拒绝
通融
#拒绝代码
#
#全盘否定
#
#
#通融
#
#标头始终编辑集Cookie(.*)“$1;HTTPOnly;安全”
检查类似的选项:、和。另外,检查类似的:、和。也。