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: rewrite for purl - pleas help
Author
Message |
gnurre
Newbie


Joined: 07 February 2012
Location: United States
Posts: 4
Posted: 07 February 2012 at 6:22pm


I have a script written to redirect a purl from something like:

mydomain.org/patsampleton
to
mydomain.org/landing.aspx?rid=patsampleton

On landing.aspx I have a form that when submitted should go to mydomain.org/in/questions.aspx?rid=patsampleton

However the form seems to want to redirect loop back to landing.aspx (mydomain.org/landing.aspx?rid=landing.aspx)

RewriteCond %{HTTP_Host} ^mydomain.org$
RewriteCond %{REQUEST_URI} !^/(robots\.txt|favicon\.ico|.*\.axd)$ [NC]
RewriteRule ^/([^/?]+)/?$ /landing.aspx\?rid=$1 [L]

Do I have something wrong in my regex? If I replace the form with just a link to the page it works fine..

__________________
gnurre
Back to Top
 
Guests
Guest


Joined: 01 October 2003
Online Status: Online
Posts: -160
Posted: 09 February 2012 at 3:08am

Would you please, provide the rewrite.log for this testing request?
Logging issues described in FAQ

Regards
Andrew
Back to Top
 
gnurre
Newbie


Joined: 07 February 2012
Location: United States
Posts: 4
Posted: 09 February 2012 at 7:26am

Logging was not enabled so I enabled it by adding this:

#enabling rewrite.log
RewriteLogLevel 9
#enabling error.log
LogLevel debug

I tested by going to mybmhsc.org/greggnurre. I got to the
landing page fine. But when clicking "continue" was route
to the custom error page on the site.

Here is a link to the full log generated after the test.

................

http://mybmhsc.com/assets/rewrite.txt


__________________
gnurre
Back to Top
 
gnurre
Newbie


Joined: 07 February 2012
Location: United States
Posts: 4
Posted: 23 February 2012 at 8:01am

Hello -

Hoping you might have some further insight onto what might be going on
from the rewrite script that I indicated above and the error logs.

Any help would be appreciated.

Thank you -

__________________
gnurre
Back to Top
 
Guests
Guest


Joined: 01 October 2003
Online Status: Online
Posts: -160
Posted: 24 February 2012 at 4:07am

Oh, sorry, the message didn't make it through.
I replied 2 weeks ago:

Quote:
I found some entries for mybmhsc.org/greggnurre, but there's nothing regarding /in/questions.aspx?rid=XXXXXX or /in/questions.aspx.
Apparently your form wasn't processed by ISAPI_Rewrite.


Regards
Andrew
Back to Top
 
gnurre
Newbie


Joined: 07 February 2012
Location: United States
Posts: 4
Posted: 24 February 2012 at 8:17am

So how would I force the form on landing.aspx to be processed by
ISAPI_Rewrite?

There is also a form on /in/questions.aspx that when submitted directs the
user to /in/updateinfo.aspx. This is working just fine but I assume this is
because questions.aspx and updateinfo.aspx both reside in the /in/ folder.

Thank you -

__________________
gnurre
Back to Top
 
Guests
Guest


Joined: 01 October 2003
Online Status: Online
Posts: -160
Posted: 27 February 2012 at 4:16am

What I meant, is that in your log there wasn't a single request regarding form or anything else mentioned.
Please, clean up the log and try again.

There's also a possibility that ISAPI_Rewrite has nothing to do with your form processing and something else comes into play.

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