This forum has been moved here:
Helicon Tech Community Forum

  Active TopicsActive Topics  Display List of Forum MembersMemberlist  HelpHelp   RegisterRegister  LoginLogin
ISAPI_Rewrite 3.0
 Helicon Tech : ISAPI_Rewrite 3.0
Subject Topic: rewrite for purl - pleas help Post ReplyPost New Topic
Author
Message << Prev Topic | Next Topic >>
gnurre
Newbie
Newbie


Joined: 07 February 2012
Location: United States
Online Status: Offline
Posts: 4
Posted: 07 February 2012 at 6:22pm | IP Logged Quote gnurre


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 View gnurre's Profile Search for other posts by gnurre
 
Guests
Guest
Guest


Joined: 01 October 2003
Online Status: Online
Posts: -149
Posted: 09 February 2012 at 3:08am | IP Logged Quote Guests

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

Regards
Andrew
Back to Top View Guests's Profile Search for other posts by Guests
 
gnurre
Newbie
Newbie


Joined: 07 February 2012
Location: United States
Online Status: Offline
Posts: 4
Posted: 09 February 2012 at 7:26am | IP Logged Quote gnurre

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 View gnurre's Profile Search for other posts by gnurre
 
gnurre
Newbie
Newbie


Joined: 07 February 2012
Location: United States
Online Status: Offline
Posts: 4
Posted: 23 February 2012 at 8:01am | IP Logged Quote gnurre

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 View gnurre's Profile Search for other posts by gnurre
 
Guests
Guest
Guest


Joined: 01 October 2003
Online Status: Online
Posts: -149
Posted: 24 February 2012 at 4:07am | IP Logged Quote Guests

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 View Guests's Profile Search for other posts by Guests
 
gnurre
Newbie
Newbie


Joined: 07 February 2012
Location: United States
Online Status: Offline
Posts: 4
Posted: 24 February 2012 at 8:17am | IP Logged Quote gnurre

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 View gnurre's Profile Search for other posts by gnurre
 
Guests
Guest
Guest


Joined: 01 October 2003
Online Status: Online
Posts: -149
Posted: 27 February 2012 at 4:16am | IP Logged Quote Guests

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 View Guests's Profile Search for other posts by Guests
 

If you wish to post a reply to this topic you must first login
If you are not already registered you must first register

  Post ReplyPost New Topic
Printable version Printable version

Forum Jump
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot delete your posts in this forum
You cannot edit your posts in this forum
You cannot create polls in this forum
You can vote in polls in this forum