2016-11-01 4 views
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|c‌​ustomer-uploads|appl‌​ication|sitemap\.xml‌​|sitemap\.html|robot‌​s\.txt|gyan\.rss) 
RewriteRule ^(.*)$ index.php?/$1 [QSA,L] 
+0

を使用してみてください。そうでなければ、何が間違っているのかを推測することは不可能です。 – JJJ

+0

*どこに*あなたがそれらを入手していますか? – Walf

+0

私たちの.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) –

答えて

0

あなたの.htaccessファイルを表示する必要があります。この簡単な方法

DirectoryIndex index.php 
RewriteEngine on 

RewriteCond $1 !^(index\.php| (.*)\.swf|forums|images|css|downloads|js|robots\.txt|favicon\.ico) 
RewriteCond %{REQUEST_FILENAME} !-f 
RewriteCond %{REQUEST_FILENAME} !-d 
RewriteRule ^(.*)$ ./index.php?$1 [L,QSA] 
関連する問題