Postback Problem

ISAPI_Rewrite is Apache mod_rewrite compatible URL rewriter for Microsoft IIS
User avatar
Posts: 8
Joined: 29 May 2012, 10:02

Postback Problem

13 Jun 2012, 10:11

Hi

I have the following url
Last edited by MC076 on 14 Jun 2012, 05:06, edited 1 time in total.

User avatar
Posts: 1264
Joined: 07 Mar 2012, 10:16

Re: Postback Problem

13 Jun 2012, 10:37

Hello,

Not sure what happens.
Please, provide rewrite.log for the testing request. Logging issues described in FAQ

Regards
Andrew

User avatar
Posts: 8
Joined: 29 May 2012, 10:02

Re: Postback Problem

13 Jun 2012, 10:43

Hi

Sure, see below;
Last edited by MC076 on 14 Jun 2012, 05:05, edited 1 time in total.

User avatar
Posts: 1264
Joined: 07 Mar 2012, 10:16

Re: Postback Problem

13 Jun 2012, 10:53

I edited your post to make it more readable.

I thing the problem is in RewriteBase directive. Try to replace it with the directory name, not the Host+DirectoryName, as in the following:

Code: Select all
RewriteBase /PreviewGames/


Also try to erase '/' in front of %{REQUEST_URI} as it already includes one:

Code: Select all
RewriteRule ^(.*)$ seo-template.aspx%{REQUEST_URI} [QSA,L]


This will at least fix couple things. You may also provide newer log after applying these fixes.

Regards
Andrew

User avatar
Posts: 8
Joined: 29 May 2012, 10:02

Re: Postback Problem

13 Jun 2012, 11:01

Thanks

This is from the rewrite log now;



(2) init rewrite engine with requested uri /PreviewGames/seo-template.aspx/PreviewGames/Blackjack/
(1) Htaccess process request C:\Program Files\Helicon\ISAPI_Rewrite3\httpd.conf
(3) Process <DirectoryMatch> D:/websites/CWC - Clubworld/www.clubworldcasinos.com/PreviewGames/Blackjack/
(1) Htaccess process request
(3) applying pattern '^(.*)$' to uri 'seo-template.aspx/PreviewGames/Blackjack/'
(4) RewriteCond: input='' pattern='^gametype=([^&]+)&gamename=([^&]+)$' => not-matched
(3) applying pattern '^(.*)$' to uri 'seo-template.aspx/PreviewGames/Blackjack/'
(4) RewriteCond: input='D:\websites\CWC - Clubworld\www.clubworldcasinos.com\PreviewGames\Blackjack\' pattern='!-f' => matched
(4) RewriteCond: input='D:\websites\CWC - Clubworld\www.clubworldcasinos.com\PreviewGames\Blackjack\' pattern='!-d' => matched
(4) RewriteCond: input='GET' pattern='^POST$' => matched
(1) Rewrite URL to >> /PreviewGames/seo-template.aspx/PreviewGames/seo-template.aspx/PreviewGames/Blackjack/
(2) rewrite 'seo-template.aspx/PreviewGames/Blackjack/' -> '/PreviewGames/seo-template.aspx/PreviewGames/seo-template.aspx/PreviewGames/Blackjack/'
(2) internal redirect with /PreviewGames/seo-template.aspx/PreviewGames/seo-template.aspx/PreviewGames/Blackjack/ [INTERNAL REDIRECT]

User avatar
Posts: 1264
Joined: 07 Mar 2012, 10:16

Re: Postback Problem

14 Jun 2012, 06:38

Seems like it has already come changed: /PreviewGames/seo-template.aspx/PreviewGames/Blackjack/
and has added another section /PreviewGames/seo-template.aspx/PreviewGames/seo-template.aspx/PreviewGames/Blackjack/

For some reason your POST condition doesn't work, so lets try to add another condition to avoid looping:

Code: Select all
RewriteCond %{REQUEST_URI} !^/.*seo-template.aspx [NC]


Regards
Andrew

Return to ISAPI_Rewrite 3.0

Who is online

Users browsing this forum: No registered users and 8 guests