Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/node.js/37.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
.htaccess 尾随斜杠重复内容_.htaccess_Https_Concrete5_Slash_Trailing - Fatal编程技术网

.htaccess 尾随斜杠重复内容

.htaccess 尾随斜杠重复内容,.htaccess,https,concrete5,slash,trailing,.htaccess,Https,Concrete5,Slash,Trailing,我不知道我在这里做错了什么,但有人能看看我的.htaccess代码,找出为什么我一直有重复的内容和尾随吗/ 我只想将所有http重定向到https,而不使用www及其复制我的内容。 我在Concrete5上运行我的网站 .htaccess代码在这里 RewriteOptions inherit # -- concrete5 urls start -- <IfModule mod_rewrite.c> RewriteEngine On RewriteBase / RewriteCond

我不知道我在这里做错了什么,但有人能看看我的.htaccess代码,找出为什么我一直有重复的内容和尾随吗/ 我只想将所有http重定向到https,而不使用www及其复制我的内容。 我在Concrete5上运行我的网站

.htaccess代码在这里

RewriteOptions inherit
# -- concrete5 urls start --
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME}/index.html !-f
RewriteCond %{REQUEST_FILENAME}/index.php !-f
RewriteCond %{REQUEST_URI} !^/[0-9]+\..+\.cpaneldcv$
RewriteCond %{REQUEST_URI} !^/[A-F0-9]{32}\.txt(?:\ Comodo\ DCV)?$
RewriteCond %{REQUEST_URI} !^/\.well-known/pki-validation/[A-F0-9]{32}\.txt(?:\ Comodo\ DCV)?$
RewriteRule . index.php [L]
</IfModule>
# -- concrete5 urls end --

RewriteEngine On 
RewriteCond %{HTTPS} off
RewriteCond %{REQUEST_URI} !^/[0-9]+\..+\.cpaneldcv$
RewriteCond %{REQUEST_URI} !^/[A-F0-9]{32}\.txt(?:\ Comodo\ DCV)?$
RewriteCond %{REQUEST_URI} !^/\.well-known/pki-validation/[A-F0-9]{32}\.txt(?:\ Comodo\ DCV)?$
RewriteRule (.*) https://defrae.com%{REQUEST_URI} [L,R=301,NC]
RewriteCond %{HTTP_HOST} ^www.defrae.com [NC]
RewriteCond %{REQUEST_URI} !^/[0-9]+\..+\.cpaneldcv$
RewriteCond %{REQUEST_URI} !^/[A-F0-9]{32}\.txt(?:\ Comodo\ DCV)?$
RewriteCond %{REQUEST_URI} !^/\.well-known/pki-validation/[A-F0-9]{32}\.txt(?:\ Comodo\ DCV)?$
RewriteRule (.*) https://defrae.com%{REQUEST_URI} [L,R=301,NC]
重写选项继承
#--从5个URL开始--
重新启动发动机
重写基/
重写cond%{REQUEST_FILENAME}-F
重写cond%{REQUEST_FILENAME}/index.html-F
重写cond%{REQUEST_FILENAME}/index.php-F
重写cond%{REQUEST_URI}^/[0-9]+\..+\.cpaneldcv$
重写cond%{REQUEST_URI}^/[A-F0-9]{32}\.txt(?:\comdo\DCV)$
重写条件%{REQUEST\u URI}!^/\。众所周知的/pki验证/[A-F0-9]{32}\.txt(?:\comdo\DCV)$
重写规则。index.php[L]
#--结束--
重新启动发动机
重写条件%{HTTPS}关闭
重写cond%{REQUEST_URI}^/[0-9]+\..+\.cpaneldcv$
重写cond%{REQUEST_URI}^/[A-F0-9]{32}\.txt(?:\comdo\DCV)$
重写条件%{REQUEST\u URI}!^/\。众所周知的/pki验证/[A-F0-9]{32}\.txt(?:\comdo\DCV)$
重写规则(.*)https://defrae.com%{REQUEST_URI}[L,R=301,NC]
重写cond%{HTTP_HOST}^www.defrae.com[NC]
重写cond%{REQUEST_URI}^/[0-9]+\..+\.cpaneldcv$
重写cond%{REQUEST_URI}^/[A-F0-9]{32}\.txt(?:\comdo\DCV)$
重写条件%{REQUEST\u URI}!^/\。众所周知的/pki验证/[A-F0-9]{32}\.txt(?:\comdo\DCV)$
重写规则(.*)https://defrae.com%{REQUEST_URI}[L,R=301,NC]