This forum has been moved here:
Helicon Tech Community Forum

Helicon Ape (Forum Locked Forum Locked)
 Helicon Tech : Helicon Ape
Subject Topic: mod_linkfreeze, mod_seo does not work
Author
Message |
chaos
Newbie


Joined: 08 May 2011
Location: Russian Federation
Posts: 5
Posted: 08 May 2011 at 1:46am

Hello!
It seems that mod_linkfreeze & mod_seo does not work on
previosly rewrited page.

1. We apply mod_linkfreeze and mod_seo - all is ok.
All links on page rewrited.
2. Follow a link, previously rewrited by mod_seo.
3. mod_seo and mod_linkfreeze does not work. All links in
original format.

.htaccess:
RewriteEngine on
RewriteBase /
RewriteMap mapfile txt:map.txt [NC]
RewriteMap revmapfile txt_rev:map.txt [NC]
RewriteMap slug int:slug

SetEnv mod_seo
SeoRule ^?catMain\.asp\?tagID=(\d+)$
tag_${slug:${mapfile:$1|$1}}.asp [Redirect,Scope=A, NC]

RewriteCond %{REQUEST_FILENAME} tag.+ [NC]
RewriteRule tag_(\d+)\.asp /catMain.asp?tagID=$1
[NC,L,NS]
RewriteCond %{REQUEST_FILENAME} tag.+ [NC]
RewriteRule tag_([a-zA-Z�-��-�_0-9]+)\.asp /catMain.asp?
tagID=${revmapfile:$1} [NC,L,NS]

Back to Top
 
Vyacheslav
Admin Group


Joined: 02 July 2008
Location: Ukraine
Posts: 1542
Posted: 10 May 2011 at 2:43am

Hello.
Would you please provide several examples of non-working links. There should be original URL and processed URL in every example.
Thank you.

__________________
Slavik Shynkarenko,
Helicon Tech.
Back to Top Visit Vyacheslav's Homepage
 
chaos
Newbie


Joined: 08 May 2011
Location: Russian Federation
Posts: 5
Posted: 10 May 2011 at 10:37am

on page /catMain.htm (/catmain.asp) mod_seo and
mod_linkfreeze works properly.
We proceed on rewrited link: /tag_keyword1.html
(/catMain.asp?tagID=86) - No links are rewrited.
But if we proceed http://mp/catMain.asp?tagID=86 we will be
redirected to /tag_keyword1.html
Back to Top
 
Vyacheslav
Admin Group


Joined: 02 July 2008
Location: Ukraine
Posts: 1542
Posted: 12 May 2011 at 5:37am

Hello.
Please try the following code:
Code:
RewriteEngine on
RewriteBase /
RewriteMap mapfile txt:map.txt [NC]
RewriteMap revmapfile txt_rev:map.txt [NC]
RewriteMap slug int:slug

SetEnv mod_seo
SeoRule ^/catMain\.asp\?tagID=(\d+)$ tag_${slug:${mapfile:$1|$1}}.asp [Redirect,Scope=A, NC]

RewriteCond %{REQUEST_FILENAME} tag.+ [NC]
RewriteRule tag_(\d+)\.asp /catMain.asp?tagID=$1
[NC,L,NS]
RewriteCond %{REQUEST_FILENAME} tag.+ [NC]
RewriteRule tag_([a-zA-Zà-ÿÀ-ß_0-9]+)\.asp /catMain.asp?
tagID=${revmapfile:$1} [NC,L,NS]


Unicode characters might be incorrect due to encoding differences.

__________________
Slavik Shynkarenko,
Helicon Tech.
Back to Top Visit Vyacheslav's Homepage
 
chaos
Newbie


Joined: 08 May 2011
Location: Russian Federation
Posts: 5
Posted: 13 May 2011 at 5:54am

Unfortunately it did not help.
On page http://mp/tag_keyword1.asp All Links in its original
form.
Back to Top
 
Vyacheslav
Admin Group


Joined: 02 July 2008
Location: Ukraine
Posts: 1542
Posted: 13 May 2011 at 7:37am

Have you tried to remove NS flag?

__________________
Slavik Shynkarenko,
Helicon Tech.
Back to Top Visit Vyacheslav's Homepage
 
chaos
Newbie


Joined: 08 May 2011
Location: Russian Federation
Posts: 5
Posted: 14 May 2011 at 9:44am

Yes, but unfortunatelly mod_linkfreeze does not work on
rewrited page.
Back to Top
 
Vyacheslav
Admin Group


Joined: 02 July 2008
Location: Ukraine
Posts: 1542
Posted: 16 May 2011 at 3:22am

Hello.
Please make sure “NS” flag is removed from each rule. Enabled logs (“LogLevel debug” in httpd.conf). Restart IIS.
Make several requests and use the following article to generate zip-archive with relevant data (docs, configs all together): http://www.helicontech.com/articles/zip-and-save-option-in-ape-manager/

Please send it to [email protected]

Thank you.

__________________
Slavik Shynkarenko,
Helicon Tech.
Back to Top Visit Vyacheslav's Homepage
 
chaos
Newbie


Joined: 08 May 2011
Location: Russian Federation
Posts: 5
Posted: 16 May 2011 at 2:52pm

Hello!
Thanks a lot!
All is working now.
Back to Top
 

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

Printable version Printable version