This forum has been moved here:
Helicon Tech Community Forum

Helicon Ape (Forum Locked Forum Locked)
 Helicon Tech : Helicon Ape
Subject Topic: SeoRule help for other links on page
Author
Message |
Schira123
Newbie


Joined: 11 September 2008
Location: Australia
Posts: 15
Posted: 09 December 2010 at 10:32pm

Hi,

I have the below SeoRule working well for changing the link:

http://serverguys.com.au/ProductDetails.aspx?item_id=509319B21

to something like

http://serverguys.com.au/Product-595825B21-Hewlett-packard__BL490C_G6_X5650_6G_1P_Server.html

---------------------------------------------------

RewriteMap SeoInfo dbd:getSeoInfo
RewriteMap slug int:slug

SeoRule ProductDetails.aspx\?item_id=(\w+)$ \
        Product-$1-${slug:${SeoInfo:$1}}.html [Redirect,Scope=A,AbsLinks]

RewriteRule ^Product-(\w+)-.*\.html$ ProductDetails.aspx\?item_id=$1 [NC,QSA]
-------------------------------------------------------

I also have some other links on the page such as ;

https://secure.onlinebiz.com.au/shopping/Cart.aspx?action=purchaseItem&itemId=C7797A%20%20%20%20%20%20%20%20%20%20%20%20%20%20&rURL=http://printerguys.com.au/ProductDetails.aspx?item_id=CQ533A

Which it is also changing. How do I prevent this sort of link (one pointing to https://secure...... being redirected.

Thank you for your help.

Andrew

 

Back to Top
 
Vyacheslav
Admin Group


Joined: 02 July 2008
Location: Ukraine
Posts: 1542
Posted: 09 December 2010 at 11:03pm

Hello.
Instead of using “SetEnv mod_seo” please try the following:
Code:
SetEnvIfNoCase %{HTTPS} !on mod_seo


Thanks.

__________________
Slavik Shynkarenko,
Helicon Tech.
Back to Top Visit Vyacheslav's Homepage
 
Vyacheslav
Admin Group


Joined: 02 July 2008
Location: Ukraine
Posts: 1542
Posted: 10 December 2010 at 7:01am

Hello.
My previous suggestion turns off mod_seo on every HTTPS request. I’m sorry for misleading, perhaps that’s not what you wanted. Please try this:
Code:
RewriteMap SeoInfo dbd:getSeoInfo
RewriteMap slug int:slug

SeoRule ^/ProductDetails.aspx\?item_id=(\w+)$ /Product-$1-${slug:${SeoInfo:$1}}.html [Redirect,Scope=A,AbsLinks]
RewriteRule ^Product-(\w+)-.*\.html$ /ProductDetails.aspx\?item_id=$1 [NC,QSA]


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

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

Printable version Printable version