[mod_rewrite] maximum number of internal redirects reached
Code (php)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
RewriteEngine On
# variabelen per
RewriteRule ^.*$ - [C,E=SITES_ROOT:/Developer/www]
# voorwaarde: alle aanvragen (inclusief _GET's)
RewriteCond %{REQUEST_URI} ^(/.*)
# voorwaarde: welke geen bestaande -file of -directory zijn
RewriteCond %{ENV:SITES_ROOT}/%{SERVER_NAME}%1 !-d
RewriteCond %{ENV:SITES_ROOT}/%{SERVER_NAME}%1 !-f
RewriteCond %{ENV:SITES_ROOT}/www.%{SERVER_NAME}%1 !-d
RewriteCond %{ENV:SITES_ROOT}/www.%{SERVER_NAME}%1 !-f
# herschrijven naar framework
RewriteRule .* %{ENV:SITES_ROOT}/CMS_MAP%1 [L]
# variabelen per
RewriteRule ^.*$ - [C,E=SITES_ROOT:/Developer/www]
# voorwaarde: alle aanvragen (inclusief _GET's)
RewriteCond %{REQUEST_URI} ^(/.*)
# voorwaarde: welke geen bestaande -file of -directory zijn
RewriteCond %{ENV:SITES_ROOT}/%{SERVER_NAME}%1 !-d
RewriteCond %{ENV:SITES_ROOT}/%{SERVER_NAME}%1 !-f
RewriteCond %{ENV:SITES_ROOT}/www.%{SERVER_NAME}%1 !-d
RewriteCond %{ENV:SITES_ROOT}/www.%{SERVER_NAME}%1 !-f
# herschrijven naar framework
RewriteRule .* %{ENV:SITES_ROOT}/CMS_MAP%1 [L]
Geeft bij mij de volgende melding in m'n acces log:
Code (php)
1
2
3
4
5
6
7
8
9
10
11
12
2
3
4
5
6
7
8
9
10
11
12
[Tue Nov 11 21:47:57 2008] [debug] mod_rewrite.c(1788): [client 127.0.0.1] mod_rewrite's internal redirect status: 0/10., referer: http://domein.local/
[Tue Nov 11 21:47:57 2008] [debug] mod_rewrite.c(1788): [client 127.0.0.1] mod_rewrite's internal redirect status: 1/10., referer: http://domein.local/
[Tue Nov 11 21:47:57 2008] [debug] mod_rewrite.c(1788): [client 127.0.0.1] mod_rewrite's internal redirect status: 2/10., referer: http://domein.local/
[Tue Nov 11 21:47:57 2008] [debug] mod_rewrite.c(1788): [client 127.0.0.1] mod_rewrite's internal redirect status: 3/10., referer: http://domein.local/
[Tue Nov 11 21:47:57 2008] [debug] mod_rewrite.c(1788): [client 127.0.0.1] mod_rewrite's internal redirect status: 4/10., referer: http://domein.local/
[Tue Nov 11 21:47:57 2008] [debug] mod_rewrite.c(1788): [client 127.0.0.1] mod_rewrite's internal redirect status: 5/10., referer: http://domein.local/
[Tue Nov 11 21:47:57 2008] [debug] mod_rewrite.c(1788): [client 127.0.0.1] mod_rewrite's internal redirect status: 6/10., referer: http://domein.local/
[Tue Nov 11 21:47:57 2008] [debug] mod_rewrite.c(1788): [client 127.0.0.1] mod_rewrite's internal redirect status: 7/10., referer: http://domein.local/
[Tue Nov 11 21:47:57 2008] [debug] mod_rewrite.c(1788): [client 127.0.0.1] mod_rewrite's internal redirect status: 8/10., referer: http://domein.local/
[Tue Nov 11 21:47:57 2008] [debug] mod_rewrite.c(1788): [client 127.0.0.1] mod_rewrite's internal redirect status: 9/10., referer: http://domein.local/
[Tue Nov 11 21:47:57 2008] [debug] mod_rewrite.c(1788): [client 127.0.0.1] mod_rewrite's internal redirect status: 10/10., referer: http://domein.local/
[Tue Nov 11 21:47:57 2008] [error] [client 127.0.0.1] mod_rewrite: maximum number of internal redirects reached. Assuming configuration error. Use 'RewriteOptions MaxRedirects' to increase the limit if neccessary., referer: http://domein.local/
[Tue Nov 11 21:47:57 2008] [debug] mod_rewrite.c(1788): [client 127.0.0.1] mod_rewrite's internal redirect status: 1/10., referer: http://domein.local/
[Tue Nov 11 21:47:57 2008] [debug] mod_rewrite.c(1788): [client 127.0.0.1] mod_rewrite's internal redirect status: 2/10., referer: http://domein.local/
[Tue Nov 11 21:47:57 2008] [debug] mod_rewrite.c(1788): [client 127.0.0.1] mod_rewrite's internal redirect status: 3/10., referer: http://domein.local/
[Tue Nov 11 21:47:57 2008] [debug] mod_rewrite.c(1788): [client 127.0.0.1] mod_rewrite's internal redirect status: 4/10., referer: http://domein.local/
[Tue Nov 11 21:47:57 2008] [debug] mod_rewrite.c(1788): [client 127.0.0.1] mod_rewrite's internal redirect status: 5/10., referer: http://domein.local/
[Tue Nov 11 21:47:57 2008] [debug] mod_rewrite.c(1788): [client 127.0.0.1] mod_rewrite's internal redirect status: 6/10., referer: http://domein.local/
[Tue Nov 11 21:47:57 2008] [debug] mod_rewrite.c(1788): [client 127.0.0.1] mod_rewrite's internal redirect status: 7/10., referer: http://domein.local/
[Tue Nov 11 21:47:57 2008] [debug] mod_rewrite.c(1788): [client 127.0.0.1] mod_rewrite's internal redirect status: 8/10., referer: http://domein.local/
[Tue Nov 11 21:47:57 2008] [debug] mod_rewrite.c(1788): [client 127.0.0.1] mod_rewrite's internal redirect status: 9/10., referer: http://domein.local/
[Tue Nov 11 21:47:57 2008] [debug] mod_rewrite.c(1788): [client 127.0.0.1] mod_rewrite's internal redirect status: 10/10., referer: http://domein.local/
[Tue Nov 11 21:47:57 2008] [error] [client 127.0.0.1] mod_rewrite: maximum number of internal redirects reached. Assuming configuration error. Use 'RewriteOptions MaxRedirects' to increase the limit if neccessary., referer: http://domein.local/
Weet iemand of dit toevallig met een instelling te maken kan hebben van je webserver oid? Ik kan er weinig over terug vinden hoe ik dit op kan lossen..
edit: het probleem zit hem in de laaste rewriterule in m'n htaccess-bestand, want als ik die escape, krijg ik geen internal error
Gewijzigd op 01/01/1970 01:00:00 door Terence Hersbach
Quote:
Use 'RewriteOptions MaxRedirects' to increase the limit if neccessary.
mappen structuur ziet er zo uit trouwens: