This forum has been moved here:
Helicon Tech Community Forum

Helicon Ape (Forum Locked Forum Locked)
 Helicon Tech : Helicon Ape
Subject Topic: rewrite rul on entire site
Author
Message |
casa51
Groupie


Joined: 22 March 2004
Location: France
Posts: 49
Posted: 11 October 2010 at 4:55am

Hi,
just migrate IIS 6 to IIS 7.5 and buy ape for replace my old linkfreeze and rewrite 2.0

have 2 questions
with ape I use linkfreeze module and they work well

code
LinkFreezePageSizeLimit 4096
SetEnvIfNoCase REQUEST_URI ^(?!/css|/CuteEditor_Files).*$ mod_linkfreeze
LinkFreezeRule ___ asp=asp [AbsLinks, MoveExt]

but this url


/flux.asp?immobilier=appartement-Loft&typetransac=VENTE&ville=Anger&typebien=1

become

flux-rss_Loft_typebien_1_typetransac_VENTE_ville_Anger.asp

It possible to be ?

flux-rss_Loft_1_VENTE_Anger.asp

hide the variable

I can use RewriteEngine

excuse for my english am french

Back to Top
 
Anton
Admin Group


Joined: 30 January 2007
Location: Ukraine
Posts: 10519
Posted: 11 October 2010 at 7:53am

Actually, the results you get doesn't correspond to the rules you have...
Could you please confirm you don't have any other rules that affect the request.

As for the transformation you need, I suggets you to have a look at mod_seo module: http://www.helicontech.com/ape/doc/mod_seo.htm,
http://www.helicontech.com/articles/mod_seo/

__________________
Regards,
Anton
Back to Top
 
casa51
Groupie


Joined: 22 March 2004
Location: France
Posts: 49
Posted: 11 October 2010 at 9:19am

Litle exemple :
I have this :
page1.asp?id=3&title=maison

be
page1_id_3_title_maison.html

but i want
page1_3_maison.html

who module I need ? linkfreeze or rewriterule

thanks
Back to Top
 
Anton
Admin Group


Joined: 30 January 2007
Location: Ukraine
Posts: 10519
Posted: 11 October 2010 at 9:59am

In such situation I would suggest using mod_rewrite and mod_seo in conjunction.

- mod_seo is needed to change links on pages to the format you want (e.g. page1_3_maison.html)
- and mod_rewrite will perform "behind the scenes" rewriting to the real URL (e.g. page1.asp?id=3&title=maison)

__________________
Regards,
Anton
Back to Top
 
casa51
Groupie


Joined: 22 March 2004
Location: France
Posts: 49
Posted: 11 October 2010 at 10:12am

mod_seo work with sqlserver ?
Back to Top
 
Anton
Admin Group


Joined: 30 January 2007
Location: Ukraine
Posts: 10519
Posted: 12 October 2010 at 5:23am

mod-seo can work either with plain text map files or with databases.
Or you can even set individual SeoRules for each specific URL (depending on the needs).

Please give us a couple of real examples of URL transformations you need, and I'll give you a sample config.

__________________
Regards,
Anton
Back to Top
 
casa51
Groupie


Joined: 22 March 2004
Location: France
Posts: 49
Posted: 12 October 2010 at 10:21am

www.site1.fr/flux-rss-resultat.asp?immobilier=appartement-Loft&typetransac=VENTE&ville=Anglet&typebien=1

need to become

www.site1.fr/flux-rss-resultat_appartement-Loft_VENTE_Anglet_1.asp

also I have some strange carater in all on my site
title and body site some "è" explose is came when I active mod_linkfreeze have you an idear ?


Edited by casa51 - 12 October 2010 at 10:22am
Back to Top
 
Anton
Admin Group


Joined: 30 January 2007
Location: Ukraine
Posts: 10519
Posted: 13 October 2010 at 4:12am

The rules for you will look like:

SetEnv mod_seo
SeoRule ^(.+)\.asp\?immobilier=([^&]+)&typetransac=([^&]+)&ville=([^&]+)&typebien=(\d+) $1_$2_$3_$4_$5.asp [NC,L]

RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^([^_]+)_([^_]+)_([^_]+)_([^_]+)_(\d+)\.asp$ $1.asp\?immobilier=$2&typetransac=$3&ville=$4&typebien=$5 [NC,L]

__________________
Regards,
Anton
Back to Top
 
casa51
Groupie


Joined: 22 March 2004
Location: France
Posts: 49
Posted: 19 October 2010 at 4:37am

i put this code
SetEnv mod_seo
SeoRule ^(.+)\.asp\?immobilier-vente=([^&]+)&ville=([^&]+)&agence=([^&]+)&typetransac=([^&]+)&typebien=(\d+) $1_$2_$3_$4_$5_$6.asp [NC,L]

RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^([^_]+)_([^_]+)_([^_]+)_([^_]+)_([^_]+)_(\d+)\.asp$ $1.asp\?immobilier-vente=$2&ville=$3&agence=$4&typetransac=$5&typebien=$6 [NC,L]

my url :
www.site1.com/flux-rss-immobilier.asp

and nothing the rewrite not work
also i put :
LoadModule seo_module         modules/mod_seo.so
in ape config
Back to Top
 
Anton
Admin Group


Joined: 30 January 2007
Location: Ukraine
Posts: 10519
Posted: 19 October 2010 at 7:21am

"my url :
www.site1.com/flux-rss-immobilier.asp"
- is it a real URL, or is it a URL after mod_seo?
How do you expect it to be processed?

__________________
Regards,
Anton
Back to Top
 
casa51
Groupie


Joined: 22 March 2004
Location: France
Posts: 49
Posted: 19 October 2010 at 8:41am

the url :
http://www.site1.com/flux-rss-immobilier.asp

list a list off produtcs

when I clik on specific go to

http://www.site1.com/flux.asp?immobilier-vente=appartement-Loft&ville=Anglet&agence=Anglet&typetransac=VENTE&typebien=1

this link need to be


www.site1.com/flux_appartement-Loft_anglet_anglet_VENTE_1.asp

but no link be rewrited
I think the seo mod not work ?

I trie the mod_linkfreeze :

LinkFreezePageSizeLimit 4096
SetEnvIfNoCase REQUEST_URI ^(?!/css).*$ mod_linkfreeze
LinkFreezeRule ___ asp=asp [AbsLinks, MoveExt]

they work but the url is not good for me :

www.site1.com/flux_agence_Anglet_immobilier-vente_appartement-Loft_typebien_1_typetransac_VENTE_ville_Anglet.asp

my ape config for seo_mod :
# Helicon Ape version 3.0.0.46


SetEnv mod_seo
SeoRule ^(.+)\.asp\?immobilier-vente=([^&]+)&ville=([^&]+)&agence=([^&]+)&typetransac=([^&]+)&typebien=(\d+) $1_$2_$3_$4_$5_$6.asp [NC,L]


RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^([^_]+)_([^_]+)_([^_]+)_([^_]+)_([^_]+)_(\d+)\.asp$ $1.asp\?immobilier-vente=$2&ville=$3&agence=$4&typetransac=$5&typebien=$6 [NC,L]

did you see something ?


Back to Top
 
Anton
Admin Group


Joined: 30 January 2007
Location: Ukraine
Posts: 10519
Posted: 20 October 2010 at 3:58am

Please try to upgrade to the latest build of Helicon Ape, which is 52 at the moment.

If the issues persist, please enable logging in httpd.conf and provide error.log and rewrite.log for the test request.

__________________
Regards,
Anton
Back to Top
 
casa51
Groupie


Joined: 22 March 2004
Location: France
Posts: 49
Posted: 20 October 2010 at 8:11am

ok I migrate to 52
my rule

# Helicon Ape version 3.0.0.52


SetEnv mod_seo
SeoRule ^(.+)\.asp\?immobilier-vente=([^&]+)&ville=([^&]+)&agence=([^&]+)&typetransac=([^&]+)&typebien=(\d+) $1_$2_$3_$4_$5_$6.asp [NC,L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^([^_]+)_([^_]+)_([^_]+)_([^_]+)_([^_]+)_(\d+)\.asp$ $1.asp\?immobilier-vente=$2&ville=$3&agence=$4&typetransac=$5&typebien=$6 [NC,L]


link destination :
www.site1.com/flux.asp?immobilier-vente=appartement-Loft&ville=Anglet&agence=Anglet&typetransac=VENTE&typebien=1

nothing append

no rewrite
nothing in log



Edited by casa51 - 20 October 2010 at 8:13am
Back to Top
 
Anton
Admin Group


Joined: 30 January 2007
Location: Ukraine
Posts: 10519
Posted: 28 October 2010 at 4:12am

Could we arrange an online meeting or can I have an RDP access to your server to check what is wrong?
If it's possible, please send access details to [email protected]

__________________
Regards,
Anton
Back to Top
 
casa51
Groupie


Joined: 22 March 2004
Location: France
Posts: 49
Posted: 28 October 2010 at 11:22am

ok thanks
I send you a acceess
Back to Top
 
Anton
Admin Group


Joined: 30 January 2007
Location: Ukraine
Posts: 10519
Posted: 01 November 2010 at 3:02am

Hello,
Just wanted to ask if you sent me the access credentials, 'cause I didn't find any...

__________________
Regards,
Anton
Back to Top
 

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

Printable version Printable version