Shopping cart URL rewriting

 
Post new topic   Reply to topic    Aprelium Forum Index -> URL Rewriting
View previous topic :: View next topic  
Author Message
lamina
-


Joined: 25 Apr 2006
Posts: 20

PostPosted: Wed Mar 19, 2008 4:25 pm    Post subject: Shopping cart URL rewriting Reply with quote

Hi,
I am using Abyss to host an on-line store using Cubecart and I would like to use the SEO facility within Cubecart, but the only option I have (other than to select php generated pages) is to select one of the following:

Apache ReWriteRule supported
Apache lookback supported only
Apache lookback and Forcetype supported

I have played around with the tutorials on URL rewriting but have just about given up. Does anyone have any suggestions what I should try since I would really like to move away from php pages.
The format of the original pages are:

http://www.co.uk/index.php?act=viewCat&catId=5
and after php generation are
http://www.co.uk/anticlastic-earrings/cat_5.php

Something similar using URL rewriting would be excellent.

Regards

Richard
Back to top View user's profile Send private message
TRUSTAbyss
-


Joined: 29 Oct 2003
Posts: 3719
Location: USA, GA

PostPosted: Wed Mar 19, 2008 6:25 pm    Post subject: Reply with quote

Maybe something like this would work?

Virtual Path Regular Expression: ^/anticlastic-earrings/cat_([0-9]+)\.php
If this rule matches: Perform an internal redirection
Redirect to: /index.php?act=viewCat&catId=$1
Next Action: Stop matching
_________________
Computer Programmer & Networking Specialist

Back to top View user's profile Send private message Visit poster's website MSN Messenger
lamina
-


Joined: 25 Apr 2006
Posts: 20

PostPosted: Wed Mar 19, 2008 8:04 pm    Post subject: Reply with quote

Hi TrustAbyss,

Thank you for your swift reply. I have managed to find the htaccess file for the cart and this is it:

RewriteEngine On
RewriteCond %{QUERY_STRING} (.+)
RewriteRule cat_(.*).html index.php?act=viewCat&catId=$1&%1 [L]
RewriteRule cat_(.*).html index.php?act=viewCat&catId=$1 [L]
RewriteCond %{QUERY_STRING} (.+)
RewriteRule prod_(.*).html index.php?act=viewProd&productId=$1&%1 [L]
RewriteRule prod_(.*).html index.php?act=viewProd&productId=$1 [L]
RewriteCond %{QUERY_STRING} (.+)
RewriteRule info_(.*).html index.php?act=viewDoc&docId=$1&%1 [L]
RewriteRule info_(.*).html index.php?act=viewDoc&docId=$1 [L]
RewriteCond %{QUERY_STRING} (.+)
RewriteRule tell_(.*).html index.php?act=taf&productId=$1&%1 [L]
RewriteRule tell_(.*).html index.php?act=taf&productId=$1 [L]



I have absolutely no idea how to convert this to Abyss format and would be grateful for any pointers/hints etc..

Regards

Richard
Back to top View user's profile Send private message
aprelium
-


Joined: 22 Mar 2002
Posts: 6800

PostPosted: Fri Apr 18, 2008 4:45 pm    Post subject: Reply with quote

(lamina has contacted us by email and got the converted rules).
_________________
Support Team
Aprelium - http://www.aprelium.com
Back to top View user's profile Send private message Send e-mail
amol
-


Joined: 25 Apr 2008
Posts: 1

PostPosted: Fri Apr 25, 2008 6:58 pm    Post subject: Re: Shopping cart URL rewriting Reply with quote

That is only SEO mod of Cubecart , i can do it for you if you like - email me at amol_gupta@hotmail.com.
lamina wrote:
Hi,
I

am using Abyss to host an on-line store using Cubecart and I would like to use the SEO facility within Cubecart, but the only option I have (other than to select php generated pages) is to select one of the following:

Apache ReWriteRule supported
Apache lookback supported only
Apache lookback and Forcetype supported

I have played around with the tutorials on URL rewriting but have just about given up. Does anyone have any suggestions what I should try since I would really like to move away from php pages.
The format of the original pages are:

http://www.co.uk/index.php?act=viewCat&catId=5
and after php generation are
http://www.co.uk/anticlastic-earrings/cat_5.php

Something similar using URL rewriting would be excellent.

Regards

Richard
Back to top View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Aprelium Forum Index -> URL Rewriting All times are GMT + 1 Hour
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB phpBB Group