This forum has been moved here:
Helicon Tech Community Forum

Helicon Ape (Forum Locked Forum Locked)
 Helicon Tech : Helicon Ape
Subject Topic: Upgrade to Ape - some rewrites won’t work
Author
Message |
timmen
Newbie


Joined: 25 January 2012
Location: United States
Posts: 1
Posted: 25 January 2012 at 11:05am

We upgraded from isapi rewrite 3 to Ape and have a couple of rewrite
rules that aren't working now. They are as follows:

RewriteEngine On
RewriteCompatibility2 On
RepeatLimit 30
RewriteBase

RewriteCond %{HTTP:Host} ^cappers\.com$
RewriteRule (.*) http\://cappers\.grit\.com$1 [NC,L,R=301]

RewriteCond %{HTTP:Host} ^www.cappers\.com$
RewriteRule (.*) http\://cappers\.grit\.com$1 [NC,L,R=301]

Can you please assist us in getting this straightened out. Thank you.

Back to Top
 
Anton
Admin Group


Joined: 30 January 2007
Location: Ukraine
Posts: 10519
Posted: 26 January 2012 at 2:36am

First, please try to fix your config like this:

RewriteEngine On
RewriteBase /

RewriteCond %{HTTP_HOST} ^(?:www\.)?cappers\.com$
RewriteRule (.*) http\://cappers\.grit\.com/$1 [NC,L,R=301]

If it doesn't help, please give the sample request which doesn't work and provide rewrite.log records for it.

__________________
Regards,
Anton
Back to Top
 
droid01
Newbie


Joined: 04 August 2010
Posts: 9
Posted: 27 January 2012 at 1:40pm

Thanks Anton, that did the trick.

We have found a few more redirects (rewrite rules) that are no longer working. They are as follows. The first one is for redirecting to the full URL of a sweepstakes page, and the second example is for expired sweepstakes pages. Thank you in advance for assistance.

RewriteRule ^sweepstakes\.aspx\?qnrName=SWP_CGC&id=2147497855$ /sweepstakes.aspx?qnrName=SWP_CGC&id=2147497855&cid=2147484695&us=1 [NC,L,R=301]

RewriteRule ^sweepstakes\.aspx\?qnrName=SWP_ALBC&id=2147494647&cid=2147494863$ /giveawayend.aspx\? [NC,L,R=301]
Back to Top
 
droid01
Newbie


Joined: 04 August 2010
Posts: 9
Posted: 01 February 2012 at 11:48am

Hello,
Any suggestions for these sweepstakes rewrite rules? Does it have to do with the periods and/or question marks in the URLs? We have quite a few redirects similar to these in our production environment that are no longer working.

thanks,
droid01
Back to Top
 
Anton
Admin Group


Joined: 30 January 2007
Location: Ukraine
Posts: 10519
Posted: 02 February 2012 at 4:25am

Hello

Sorry, my answer was not posted for some reason.

The rules should be:

RewriteCond %{QUERY_STRING} ^qnrName=SWP_CGC&id=2147497855$ [NC]
RewriteRule ^sweepstakes\.aspx$ /sweepstakes.aspx?qnrName=SWP_CGC&id=2147497855&cid=2147484695&us=1 [NC,L,R=301]

RewriteCond %{QUERY_STRING} ^qnrName=SWP_ALBC&id=2147494647&cid=2147494863$ [NC]
RewriteRule ^sweepstakes\.aspx$ /giveawayend.aspx\? [NC,L,R=301]

__________________
Regards,
Anton
Back to Top
 
droid01
Newbie


Joined: 04 August 2010
Posts: 9
Posted: 02 February 2012 at 8:17am

Hi anton,
We have tested a few of these rules, and they are now working correctly. We will let you know if we have any further questions.

thanks again,
droid01
Back to Top
 

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

Printable version Printable version