httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From javalishixml <javalishi...@163.com>
Subject [users@httpd] Re:Re: [users@httpd] rewrite rule leads to infinite rewrite loop at apache
Date Thu, 16 Jul 2015 02:00:38 GMT
Eric,


My below configuration is just going to jump the url from http://rm.jco.com.cn/myjco/orders/xxxx
 to https://rm.jco.com.cn/myjco/orders/xxxx
But it leads to infinite rewrite loop inside apache


RewriteCond %{SERVER_PORT} !^443$
RewriteCond %{HTTP_HOST}   ^rm.jco.com.cn$
RewriteCond %{REQUEST_URI} ^/myjco/orders
RewriteRule (.*) https://rm.jco.com.cn/myjco/orders [L,R]




Anyother configuration as below showing could successfully jump the url from  http://www.jco.com.cn/myjco/mySecurity/xxx
to  https://www.jco.com.cn/myjco/mySecurityxxx




RewriteCond %{SERVER_PORT} !^443$
RewriteCond %{HTTP_HOST}   ^www.jco.com.cn$
RewriteCond %{REQUEST_URI} ^/myjco/mySecurity
RewriteRule (.*) https://www.jco.com.cn/myjco/mySecurity [L,R]


What's my error in my configuration? How to troubleshooting this issue?


Thanks,
S


At 2015-07-16 00:38:14, "Eric Covener" <covener@gmail.com> wrote:
>On Wed, Jul 15, 2015 at 12:32 PM, javalishixml <javalishixml@163.com> wrote:
>> RewriteCond %{REQUEST_URI} ^/myjco/mySecurity
>
>
>You probably meant to negate this one, specifically to avoid the loop?
>
>-- 
>Eric Covener
>covener@gmail.com
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
>For additional commands, e-mail: users-help@httpd.apache.org
>
Mime
View raw message