2016-05-14 13 views
0

奇妙な何かをやっている私は、私は私のサイトhtaccessの書き換えルールが

https://testsite.com/ProductsCatalog/Vertical/Boards 

に行くとき、私は内部サーバーエラーを取得

RewriteRule ^(.*)$ /index.php/$1 [QSA,L] 

私のhtaccessファイルでこれを持っています。デバッグに

私はデバッグフラグを追加し、それはあなたがに書き換えされている送信先除外する必要があり、この

[Sat May 14 15:33:04.430655 2016] [rewrite:trace2] [pid 38242] mod_rewrite.c(476): [client 127.0.0.1:52126] 127.0.0.1 - - [site/sid#7ffae3005dc8][rid#7ffae4879678/initial/redir#10] [perdir /Library/WebServer/Documents/site/] rewrite 'index.php/index.php/index.php/index.php/index.php/index.php/index.php/index.php/index.php/index.php/ProductsCatalog/Vertical/Boards' -> '/index.php/index.php/index.php/index.php/index.php/index.php/index.php/index.php/index.php/index.php/index.php/ProductsCatalog/Vertical/Boards' 
[Sat May 14 15:33:04.430663 2016] [rewrite:trace2] [pid 38242] mod_rewrite.c(476): [client 127.0.0.1:52126] 127.0.0.1 - - [site/sid#7ffae3005dc8][rid#7ffae4879678/initial/redir#10] [perdir /Library/WebServer/Documents/site/] trying to replace context docroot /Library/WebServer/Documents/site with context prefix 
[Sat May 14 15:33:04.430669 2016] [rewrite:trace1] [pid 38242] mod_rewrite.c(476): [client 127.0.0.1:52126] 127.0.0.1 - - [site/sid#7ffae3005dc8][rid#7ffae4879678/initial/redir#10] [perdir /Library/WebServer/Documents/site/] internal redirect with /index.php/index.php/index.php/index.php/index.php/index.php/index.php/index.php/index.php/index.php/index.php/ProductsCatalog/Vertical/Boards [INTERNAL REDIRECT] 

答えて

1

を示しています。そうしないと、以降の書き換えループエラーが発生します

RewriteRule ^((?!index\.php).*)$ /index.php/$1 [QSA,L] 

をパターン^(.*)$もuriと一致しますindex.php

関連する問題