This forum has been moved here:
Helicon Tech Community Forum

  Active TopicsActive Topics  Display List of Forum MembersMemberlist  HelpHelp   RegisterRegister  LoginLogin
Helicon Ape
 Helicon Tech : Helicon Ape
Subject Topic: Upgrade to Ape - some rewrites won’t work Post ReplyPost New Topic
Author
Message << Prev Topic | Next Topic >>
timmen
Newbie
Newbie


Joined: 25 January 2012
Location: United States
Online Status: Offline
Posts: 1
Posted: 25 January 2012 at 11:05am | IP Logged Quote timmen

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 View timmen's Profile Search for other posts by timmen
 
Anton
Admin Group
Admin Group


Joined: 30 January 2007
Location: Ukraine
Online Status: Offline
Posts: 10520
Posted: 26 January 2012 at 2:36am | IP Logged Quote Anton

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


Joined: 04 August 2010
Online Status: Offline
Posts: 9
Posted: 27 January 2012 at 1:40pm | IP Logged Quote droid01

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


Joined: 04 August 2010
Online Status: Offline
Posts: 9
Posted: 01 February 2012 at 11:48am | IP Logged Quote droid01

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 View droid01's Profile Search for other posts by droid01
 
Anton
Admin Group
Admin Group


Joined: 30 January 2007
Location: Ukraine
Online Status: Offline
Posts: 10520
Posted: 02 February 2012 at 4:25am | IP Logged Quote Anton

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


Joined: 04 August 2010
Online Status: Offline
Posts: 9
Posted: 02 February 2012 at 8:17am | IP Logged Quote droid01

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

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