Forum Moderators: coopster & phranque

Message Too Old, No Replies

Optimising a Perl Shopping Cart

         

shadowen

3:24 pm on Oct 28, 2003 (gmt 0)

10+ Year Member



Hi,

Could someone help me with this. I have a site that is using Perl for a shopping cart and I'd like to get the products and categories indexed within the search engines. I personally can't programme in Perl, so I need to know what to tell our developers. What would I need to do to e.g. re-write the URLs, etc. to make the site more search engine friendly.

Example URLs:

www.mydomain.com/perl/product/product.pl?_STATUS=GET_CATEGORY_PAGE&PRODUCT_CATEGORY_ID=14

www.mydomain.com/perl/product/product.pl?_STATUS=GET_PRODUCT_PAGE&PRODUCT_ID=3385

Thank you in advance.

Velmu

4:19 pm on Oct 28, 2003 (gmt 0)

10+ Year Member



Make a .htaccess-file and put following lines there.

RewriteEngine On
RewriteRule ^category_(.*)/ /perl/product/product.pl_STATUS=GET_CATEGORY_PAGE&PRODUCT_CATEGORY_ID=$1

RewriteRule ^products/(.*).html /perl/product/product.pl?_STATUS=GET_PRODUCT_PAGE&PRODUCT_ID=$1

Now you could link to a category using [mydomain.com...] and to a product using [mydomain.com...]

I'm too lazy to test this myself, but maybe it will work.

shadowen

12:51 pm on Oct 29, 2003 (gmt 0)

10+ Year Member



Thanks, I'll get the tech department to try and implement it :-D