0
我々はまだ我々は4つのバージョン以下で、内側のページのURLを取得している、ルートにindex.php
をリダイレクトしてきましたが?/index.php/、/index.php?/、//CodeIgniterのURLの中
https://example.com/articles [/index.php/articles, /index.php?/articles & /?/articles]
をなぜ誰が説明するのだろうか?
RewriteEngine on
RewriteCond %{HTTPS} !=on
RewriteRule ^.*$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
RewriteCond %{http_host} ^www.example.com
RewriteRule ^(.*) example.com/$1 [L,R=301]
RewriteCond $1 !^(index\.php|phpinfo\.php|Charts|assets|uploads|userfiles|customer-uploads|application|sitemap\.xml|sitemap\.html|robots\.txt|gyan\.rss)
RewriteRule ^(.*)$ index.php?/$1 [QSA,L]
を使用してみてください。そうでなければ、何が間違っているのかを推測することは不可能です。 – JJJ
*どこに*あなたがそれらを入手していますか? – Walf
私たちの.htaccessは次のようになります:RewriteCond%{HTTPS}!= RewriteRule ^。* $ https://%{HTTP_HOST} example.com RewriteRule ^(。*)https://example.com/$1 [L、R = 301] RewriteCond $ 1!^(インデックス\ .php | phpinfo \ .php |グラフ| assets | uploads | userfiles | (QSA、L) –