The difference between apache address rewriting on linux and windows XP is that on windows
RewriteCond % {HTTP_HOST} ^ ([^ \.] +) .test.com $
RewriteRule ^ (. +)/(. +) \. html $ % 1/base/ss $1 @ $2. html [PT]
RewriteRule ^ (. +). html $ index. php/$1 [L]
The above rules can be used on winowsXP but an error is reported on linux. the error log content is as follows:
[Mon Jul 21 15:14:55 2014] [error] [client 192.168.7.176] Request exceeded the limit of 10 internal redirects due to probable configuration error. use 'limitinternalrecorsion' to increase the limit if necessary. use 'loglevel debug' to get a backtrace.
[Mon Jul 21 15:14:55 2014] [error] [client 192.168.7.176] Request exceeded the limit of 10 internal redirects due to probable configuration error. use 'limitinternalrecorsion' to increase the limit if necessary. use 'loglevel debug' to get a backtrace.
[Mon Jul 21 15:14:55 2014] [error] [client 192.168.7.176] Request exceeded the limit of 10 internal redirects due to probable configuration error. use 'limitinternalrecorsion' to increase the limit if necessary. use 'loglevel debug' to get a backtrace.
[Mon Jul 21 15:14:55 2014] [error] [client 192.168.7.176] Request exceeded the limit of 10 internal redirects due to probable configuration error. use 'limitinternalrecorsion' to increase the limit if necessary. use 'loglevel debug' to get a backtrace.
[Mon Jul 21 15:14:56 2014] [error] [client 192.168.7.176] Request exceeded the limit of 10 internal redirects due to probable configuration error. use 'limitinternalrecorsion' to increase the limit if necessary. use 'loglevel debug' to get a backtrace.
[Mon Jul 21 15:14:56 2014] [error] [client 192.168.7.176] Request exceeded the limit of 10 internal redirects due to probable configuration error. use 'limitinternalrecorsion' to increase the limit if necessary. use 'loglevel debug' to get a backtrace.
In linux, you must change the following rules.
RewriteCond % {HTTP_HOST} ^ ([^ \.] +) .test.com $
RewriteRule ^ (. +)/(. +) \. html $ % 1/base/ss $1 @ $2. html [PT]
RewriteRule ^ (. +). htm $ index. php/$1 [L]
I want to use .html in both linuxand Windows XP.
Is there any way? Is it because of httpd. conf settings?
Reply to discussion (solution)
Sorry, the above part is wrong, and now it is corrected:
On windows
RewriteCond % {HTTP_HOST} ^ ([^ \.] +) .test.com $
RewriteRule ^ (. +)/(. +) \. html $ % 1/base/ss1_1@20.2.html [PT]
RewriteRule (.20.20..html $ index. php/$1 [L]
The above rules can be used on winowsXP but an error is reported on linux. the error log content is as follows:
[Mon Jul 21 15:14:55 2014] [error] [client 192.168.7.176] Request exceeded the limit of 10 internal redirects due to probable configuration error. use 'limitinternalrecorsion' to increase the limit if necessary. use 'loglevel debug' to get a backtrace.
[Mon Jul 21 15:14:55 2014] [error] [client 192.168.7.176] Request exceeded the limit of 10 internal redirects due to probable configuration error. use 'limitinternalrecorsion' to increase the limit if necessary. use 'loglevel debug' to get a backtrace.
[Mon Jul 21 15:14:55 2014] [error] [client 192.168.7.176] Request exceeded the limit of 10 internal redirects due to probable configuration error. use 'limitinternalrecorsion' to increase the limit if necessary. use 'loglevel debug' to get a backtrace.
[Mon Jul 21 15:14:55 2014] [error] [client 192.168.7.176] Request exceeded the limit of 10 internal redirects due to probable configuration error. use 'limitinternalrecorsion' to increase the limit if necessary. use 'loglevel debug' to get a backtrace.
[Mon Jul 21 15:14:56 2014] [error] [client 192.168.7.176] Request exceeded the limit of 10 internal redirects due to probable configuration error. use 'limitinternalrecorsion' to increase the limit if necessary. use 'loglevel debug' to get a backtrace.
[Mon Jul 21 15:14:56 2014] [error] [client 192.168.7.176] Request exceeded the limit of 10 internal redirects due to probable configuration error. use 'limitinternalrecorsion' to increase the limit if necessary. use 'loglevel debug' to get a backtrace.
In linux, you must change the following rules.
RewriteCond % {HTTP_HOST} ^ ([^ \.] +) .test.com $
RewriteRule ^ (. +)/(. +) \. html $ % 1/base/ss $1 @ $2. htm [PT]
RewriteRule ^ (. +). html $ index. php/$1 [L]
I want to use .html in both linuxand Windows XP.
Is there any way? Is it because of httpd. conf settings?
Request exceeded the limit of 10 internal redirects due to probable configuration error. Use 'limitinternalrecorsion' to increase the limit if necessary. Use 'loglevel debug' to get a backtrace.
Exceeds the limit of 10 rewrites per request
LimitInternalRecursion indicates that it may be called recursively and repeatedly blocked by rewrite. the depth exceeds 10 layers.
Request exceeded the limit of 10 internal redirects due to probable configuration error. Use 'limitinternalrecorsion' to increase the limit if necessary. Use 'loglevel debug' to get a backtrace.
Exceeds the limit of 10 rewrites per request
LimitInternalRecursion indicates that it may be called recursively and repeatedly blocked by rewrite. the depth exceeds 10 layers.
It is indeed recursive. Because
RewriteRule ^ (. +)/(. +) \. html $ % 1/base/ss $1 @ $2. html [PT]
RewriteRule ^ (. +). html $ index. php/$1 [L]
Article 2 intercepts all URLs ending with. html
The first line only refers to a .html address.
However, after Windows XP runs the first command, it stops providing normal access and reports an error in linux.