| View previous topic :: View next topic   | 
	
	
	
		| Author | 
		Message | 
	
	
		lamina -
 
  Joined: 25 Apr 2006 Posts: 20
 
  | 
		
			
				 Posted: Wed Mar 19, 2008 4:25 pm    Post subject: Shopping cart URL rewriting | 
				      | 
			 
			
				
  | 
			 
			
				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 | 
		
			          | 
		
	
	
		  | 
	
	
		TRUSTAbyss -
 
  Joined: 29 Oct 2003 Posts: 3752 Location: USA, GA
  | 
		
			
				 Posted: Wed Mar 19, 2008 6:25 pm    Post subject:  | 
				      | 
			 
			
				
  | 
			 
			
				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 | 
			 
		  | 
	
	
		| Back to top | 
		
			           | 
		
	
	
		  | 
	
	
		lamina -
 
  Joined: 25 Apr 2006 Posts: 20
 
  | 
		
			
				 Posted: Wed Mar 19, 2008 8:04 pm    Post subject:  | 
				      | 
			 
			
				
  | 
			 
			
				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 | 
		
			          | 
		
	
	
		  | 
	
	
		aprelium -
 
  Joined: 22 Mar 2002 Posts: 6800
 
  | 
		
			
				 Posted: Fri Apr 18, 2008 4:45 pm    Post subject:  | 
				      | 
			 
			
				
  | 
			 
			
				(lamina has contacted us by email and got the converted rules). _________________ Support Team
 
Aprelium - http://www.aprelium.com | 
			 
		  | 
	
	
		| Back to top | 
		
			           | 
		
	
	
		  | 
	
	
		amol -
 
  Joined: 25 Apr 2008 Posts: 1
 
  | 
		
			
				 Posted: Fri Apr 25, 2008 6:58 pm    Post subject: Re: Shopping cart URL rewriting | 
				      | 
			 
			
				
  | 
			 
			
				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 | 
		
			          | 
		
	
	
		  | 
	
	
		 |