This forum has been moved here:
Helicon Tech Community Forum

ISAPI_Rewrite 3.0 (Forum Locked Forum Locked)
 Helicon Tech : ISAPI_Rewrite 3.0
Subject Topic: infinite loop on rewrite?
Author
Message |
satavi
Newbie


Joined: 30 November 2011
Location: United States
Posts: 3
Posted: 02 December 2011 at 4:47pm

I need to remove the pages/default.aspx section from the test server and I get an infinite loop from the fiddler tool. why am I getting this error?

RewriteBase /
#VERSION 1
#RewriteCond  %{HTTP_HOST} epicor2010dev [NC]
#RewriteRule /(.*) http\://epicor2010dev/? [NC,R=301,L]   

#VERSION 2
RewriteCond %{HTTP_HOST} epicor2010dev [NC]
RewriteRule ([^/]+)/default\.aspx http\://epicor2010dev/? [NC,R=301,L]

fiddler result:

# Result Protocol Host URL Body Caching Content-Type Process Comments Custom
1 302 HTTP epicor2010dev / 162 text/html; charset=UTF-8 iexplore:3492
2 301 HTTP epicor2010dev /Pages/default.aspx 231 text/html iexplore:3492
3 302 HTTP epicor2010dev / 162 text/html; charset=UTF-8 iexplore:3492
4 301 HTTP epicor2010dev /Pages/default.aspx 231 text/html iexplore:3492
5 302 HTTP epicor2010dev / 162 text/html; charset=UTF-8 iexplore:3492
6 301 HTTP epicor2010dev /Pages/default.aspx 231 text/html iexplore:3492
7 302 HTTP epicor2010dev / 162 text/html; charset=UTF-8 iexplore:3492
8 301 HTTP epicor2010dev /Pages/default.aspx 231 text/html iexplore:3492
9 302 HTTP epicor2010dev / 162 text/html; charset=UTF-8 iexplore:3492
10 301 HTTP epicor2010dev /Pages/default.aspx 231 text/html iexplore:3492
11 302 HTTP epicor2010dev / 162 text/html; charset=UTF-8 iexplore:3492
Back to Top
 
Guests
Guest


Joined: 01 October 2003
Online Status: Online
Posts: -160
Posted: 05 December 2011 at 4:44am

Version 2 has everything for loop.
You need .+ instead of .*, I guess.

Regards
Andrew
Back to Top
 
satavi
Newbie


Joined: 30 November 2011
Location: United States
Posts: 3
Posted: 05 December 2011 at 11:33am

I get the same results with following so it didn't help. any other suggestions? Thanks

RewriteBase /
#RewriteCond  %{HTTP_HOST} epicor2010dev [NC]
#RewriteRule /(.+) http\://epicor2010dev/? [NC,R=301,L]   

Back to Top
 
Guests
Guest


Joined: 01 October 2003
Online Status: Online
Posts: -160
Posted: 06 December 2011 at 5:10am

Than there's smth else.
Please, send us a note via helpdesk to assign online meeting.

regards
Andrew
Back to Top
 


Sorry, you can NOT post a reply.
This forum has been locked by a forum administrator.

Printable version Printable version