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: Infinite loop in latest version [update] Post ReplyPost New Topic
Author
Message << Prev Topic | Next Topic >>
juno
Newbie
Newbie


Joined: 29 September 2009
Online Status: Offline
Posts: 25
Posted: 08 December 2011 at 4:26am | IP Logged Quote juno

UPDATE:

I've solved it by adding "NS".
RewriteRule ^jobs/details/default\.aspx$ /jobs/details/%1/%2? [NS, NC,R=301,L]

And it's working now.
Two questions still remain, see below.

---

We've purchased another license of Helicon Ape for our new server.
We're still using Helicon Ape version 3.0.0.52 on the other (older) server and the rules below are working fine:

-----------------
RewriteEngine On

DBDriver mssql
DBDParams "Data Source=xxxxx;Initial Catalog=xxxxx;User ID=xxxx;Password=#xxxx"
DBDPrepareSQL "SELECT [seo_jobtitle] FROM vw_jobs_rewritten WHERE [Job_ID]=@KEY" seo_map_select_jobs


RewriteBase /

# Jobs
# Redirect to SEO-friendly URL
RewriteMap map_dbd dbd:seo_map_select_jobs
RewriteCond %{QUERY_STRING} id=(\d+) [NC]
# RewriteCond %{QUERY_STRING} ^(?:page)?id=(\d+)$ [NC]
RewriteCond ${map_dbd:%1|NOT_FOUND} (.*)
RewriteCond %2 !NOT_FOUND
RewriteRule ^jobs/details/default\.aspx$ /jobs/details/%1/%2? [NC,R=301,L]
## Rewrite to original URL
RewriteRule ^jobs/details/(\d+)/[^/]+/?$ /jobs/details/default.aspx?id=$1 [NC,L,NS]
# /Jobs
-----------------
input: www.mysite.com/jobs/details/default.aspx?id=6751
output: www.mysite.com/jobs/details/6751/my-nice-jobtitle
-----------------

But when i copy these rules to our new server with Helicon Ape version 3.0.0.71 it will cause an infinite loop..?
The url IS rewritten though, but it cannot resolve the original url anymore and thus causing a loop.

Questions:
  1. Do i have to use mod_seo instead of mod_dbd module?
  2. Is there any way to get rid of the ID (6751) in the rewritten url?

Thanks!



Edited by juno - 08 December 2011 at 4:43am
Back to Top View juno's Profile Search for other posts by juno
 
Guests
Guest
Guest


Joined: 01 October 2003
Online Status: Online
Posts: -149
Posted: 09 December 2011 at 7:44am | IP Logged Quote Guests

Recently we've been experiencing some customer reports regarding loops.
So we had to edit HeliconApe and re-create functions of NS flag. Now NS does what it did for you.

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