Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/.htaccess/5.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
为什么Wordpress htaccess重写规则不适用于驻留域?_Wordpress_.htaccess_Url Rewriting - Fatal编程技术网

为什么Wordpress htaccess重写规则不适用于驻留域?

为什么Wordpress htaccess重写规则不适用于驻留域?,wordpress,.htaccess,url-rewriting,Wordpress,.htaccess,Url Rewriting,对于主域(.nl),所有内容都是通过https和www强制执行的。 然而,有一个小错误与停泊的领域。是 当像www.一样访问时,不会添加。 在所有其他情况下,它都是有效的 .我目前的访问权限是: <IfModule mod_rewrite.c> RewriteEngine On RewriteBase / RewriteRule ^index\.php$ - [L] RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_F

对于主域(.nl),所有内容都是通过https和www强制执行的。 然而,有一个小错误与停泊的领域。是

当像www.一样访问时,不会添加。 在所有其他情况下,它都是有效的

.我目前的访问权限是:

<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]

RewriteCond %{HTTP_HOST} !^www\. [NC]
RewriteCond %{HTTP_HOST} ^(.+)$ [NC]
RewriteRule ^(.*)$ https://www\.%1/$1 [R=301,L]

</IfModule>

重新启动发动机
重写基/
重写规则^index\.php$-[L]
重写cond%{REQUEST_FILENAME}-F
重写cond%{REQUEST_FILENAME}-D
重写规则/index.php[L]
重写cond%{HTTP_HOST}^www\。[北卡罗来纳州]
重写cond%{HTTP_HOST}^(+)$[NC]
重写规则^(.*)$https://www\.%1/$1[R=301,L]

任何想法都欢迎

可能想检查一下

RewriteCond %{HTTPS} off [OR]
RewriteCond %{HTTP_HOST} !^www\. [NC]
RewriteRule ^(.*)$ https://www.%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
快到了。。。输入时)重写将转到主域(),而不是。