https,htaccess和断开的链接

时间:2019-04-10 12:58:08

标签: .htaccess https url-redirection question2answer

我移至https安全系统。但是后来我在链接重定向上遇到了麻烦。

我的.htaccess文件

Options -Indexes
DirectoryIndex index.php
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteCond %{REQUEST_URI} ^(.*)//(.*)$
RewriteCond %{REQUEST_URI} !^/[0-9]+\..+\.cpaneldcv$
RewriteCond %{REQUEST_URI} !^/[A-F0-9]{32}\.txt(?:\ Comodo\ DCV)?$
RewriteRule . %1/%2 [R=301,L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_URI} !^/[0-9]+\..+\.cpaneldcv$
RewriteCond %{REQUEST_URI} !^/[A-F0-9]{32}\.txt(?:\ Comodo\ DCV)?$
RewriteRule ^.*$ index.php?qa-rewrite=$0&%{QUERY_STRING} [L]
</IfModule>

RewriteEngine On
RewriteCond %{HTTP_HOST} ruyadaruya\.com [NC]
RewriteCond %{SERVER_PORT} 80
RewriteRule ^(.*)$ https://www.ruyadaruya.com/$1 [R,L]

示例

here(链接断开,方向404)

http://www.ruyadaruya.com/hareketler(链接不错,没问题。)

如何使用htaccess文件修复外部链接?

(我已经查看了其他问题并尝试了方法。但是我无法解决)

Q2A版本:1.8.3

0 个答案:

没有答案