現在、私はフォーラムサイトの.htaccessファイルに次のものを持っています。 //example.com、www.example.com、(HTTP)::httpをhttpsにリダイレクトする.htaccess
RewriteEngine on
RewriteCond %{HTTP_HOST} ^(www\.)?example\.com [NC]
RewriteRule ^/?$ http://example.com/forums/ [L,R=301]
それは(HTTP)のようにすべてをリダイレクトするための完璧な作品example.com/forumsに//www.example.comなどいます私が欲しかったものです。
これで、すべてが(https)://example.com/forumsにリダイレクトされますが、example.com/forums/stuffなどの既存のリンクに関する問題が発生しています。
https://example.com/forumsにリダイレクトするexample.comしか入手できません。example.com/forums/stuffなどの直接リンクはhttpsバージョンにリダイレクトされません。
'のRewriteRule *ます。https://%{HTTP_HOST}%{REQUEST_URI} [L、R = 301]'ランディングフォーラムページへのページと
http -> https
をリダイレクトするための別のルールをリダイレクトするためのルール? – Cyclonecode[htaccess redirect to https:// www]の重複している可能性があります(http://stackoverflow.com/questions/13977851/htaccess-redirect-to-https-www) – Cyclonecode