This forum has been moved here:
Helicon Tech Community Forum

Helicon Ape (Forum Locked Forum Locked)
 Helicon Tech : Helicon Ape
Subject Topic: Infinite loop in latest version [update]
Author
Message |
juno
Newbie


Joined: 29 September 2009
Posts: 25
Posted: 08 December 2011 at 4:26am

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][email protected]" 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
 
Guests
Guest


Joined: 01 October 2003
Online Status: Online
Posts: -160
Posted: 09 December 2011 at 7:44am

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
 

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

Printable version Printable version