Differences between apache address rewriting on linux and Windows XP

Source: Internet
Author: User
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.
Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.