apache - inexplicable mod_rewrite behavior -
I have a typo3 installation with the mod_rewrite rule:
Just to understand mod_rewrite I Not to make the following rules.
If someone makes a request with Yuri and accepts "language" then I /index.php?id=1&l=1
this is my marriage. Htaccess is
rewrite angle% {REQUEST_URI}! / / [NC] Rivet Conduct% {HTTP: Accept-language} ^ N [nc] rewriterecll ^ $ / index.f.f.ID = 1 & amp; L = 1 [R = 301, L] rewrite. * /index.php [L] I get a 500 error. In Apache logfile:
The request exceeded the limit of 10 internal redirects due to a possible configuration error. Use 'LimitInternalRecursion' to increase the range if necessary Use 'log-level debug' to get backtracks. [Venus 25 July 14:14:59] [Debug] Core C (3112): [Client 188.24.87] R- & gt; Uri = /index.php [Fri Jul 25 14:14:59 2014] [debug] Core C (3118): [Client 188.24.87] R- & gt; Uri = /index.php [Fri Jul 25 14:14:59 2014] [debug] Corrected by Core C (3118): [Client 188.24 .87] R- & gt; Uri = /index.php [Fri Jul 25 14:14:59 2014] [Debug] Redirected from Core C (3118): [Client 188.24.87] R- & gt; Yuri = /index.php [Fri Jul 25 14:14:59 2014] [debug] Core C (3118): [Client 188.24.87] R-> Yuri = / Indix redirected from POP [Fri 25 July 14: 14: 59 2014] [Debug] Core C (3118): [Client 188.24.87] R- & gt; Uri = /index.php [Fri Jul 25 14:14:59 2014] [Debug] Redirected from Core C (3118): [Client 188.24.87] R- & gt; Uri = /index.php [Fri Jul 25 14:14:59 2014] [Debug] Redirected from Core C (3118): [customer 188.24.87] redirected from R-> Uri = /index.php [Venus 25 July 14:14:59] [debug] Core C (3118): [Client 188.24.87] R-> Yuri = / Indix.FPP redirect [Fri 25 July 14:14: 59 2014] [Debug] Core C (3118): [CLI Ent 188.24.87] R- & gt; Uri = /index.php [Fri Jul 25 14:14:59 2014] [debug] Corrected by Core C (3118): [Client 188.24.87] R-> Yuri = / What did I do?
You are very close, but your final rule is executed many times, because . * matching index.php after the initial reconstruction. Change it to: Rewrite rule ^ (?! Index .php) /index.php [L]
Comments
Post a Comment