.htaccess 阻止Q2A重定向加载项域?

.htaccess 阻止Q2A重定向加载项域?,.htaccess,redirect,.htaccess,Redirect,我已经安装了Q2A脚本 我有非www.&non-https重定向到www&https,但在htaccess代码中的某个地方,它将我的附加域重定向到了 我怀疑这与以下内容有关,但不知道如何正确编辑: RewriteCond %{REQUEST_URI} ^(.*)//(.*)$ RewriteRule . %1/%2 [R=301,L] RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRu

我已经安装了Q2A脚本

我有非www.&non-https重定向到www&https,但在htaccess代码中的某个地方,它将我的附加域重定向到了

我怀疑这与以下内容有关,但不知道如何正确编辑:

RewriteCond %{REQUEST_URI} ^(.*)//(.*)$
RewriteRule . %1/%2 [R=301,L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^.*$ index.php?qa-rewrite=$0&%{QUERY_STRING} [L]
以下是全部代码:

DirectoryIndex index.php
<IfModule mod_rewrite.c>
RewriteEngine On
#RewriteBase /
# redirect any domain other than www.main-domain.com to www.main-domain.com
RewriteCond %{HTTP_HOST} !^www\.main-domain\.com$ [NC]
RewriteRule ^(.*)$ https://www.main-domain.com/$1 [L,R=301]

# force https on www.main-domain.com
RewriteCond %{HTTPS} ^off
RewriteRule ^(.*)$ https://www.main-domain.com/$1 [L,R=301]

RewriteCond %{REQUEST_URI} ^(.*)//(.*)$
RewriteRule . %1/%2 [R=301,L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^.*$ index.php?qa-rewrite=$0&%{QUERY_STRING} [L]

</IfModule>

我需要它重定向到http://www.addon-domain.comThat 在你的规则中已经发生了。/addon-domain.com/是否也有.htaccess?在新浏览器中测试以避免旧缓存。不,我没有加载域的任何htaccess文件,并且在另一个浏览器中测试过相同的问题感谢您的帮助,您引导了我正确的方向。我向加载域添加了htaccess,它是如何工作的。