Post by chomp » Sun Feb 25, 2007 8:20 am

Use:

changes urls like:
http://yourdomain.com/index.php?view=pr ... oduct_id=2

to:
http://yourdomain.com/shop/product/2/

Install:

Download attachement and unzip.

*For version 0.6
copy all contents to your opencart root directory. backups are included so unless you made mods to opencart you can overwrite existing files.


url alias still works as well as sending request via old format: index.php?var=value

I chose the format above rather than http://yourdomain.com/shop/this-is-a-product-name/ because it's faster, less load on sites w/ a lot of links, and you don't have to deal with special characters (&-_/@#, you get the point) in urls.

Extra variables are passed in the query string. So the site's not fully friendly. Since i didn't write the software i don't know which pages use which variables in the url.

-steve.
Last edited by chomp on Thu May 31, 2007 7:47 am, edited 1 time in total.

New member

Posts

Joined
Sat Feb 24, 2007 7:19 am

Post by prospector » Mon May 28, 2007 8:13 pm

Hello,

the hack sounds very nice, but when I downloaded it and renamed to .zip it shows: "corrupted archive".

Can you upload it once again?

Prospector

Newbie

Posts

Joined
Mon May 28, 2007 8:09 pm

Post by chomp » Thu May 31, 2007 7:48 am

uploaded zip file. at the time the forum didnt allow zip files.

New member

Posts

Joined
Sat Feb 24, 2007 7:19 am

Post by BFTUK » Sun Jul 29, 2007 7:41 pm

chomp wrote: url alias still works as well as sending request via old format: index.php?var=value

I chose the format above rather than http://yourdomain.com/shop/this-is-a-product-name/ because it's faster, less load on sites w/ a lot of links, and you don't have to deal with special characters (&-_/@#, you get the point) in urls.
Can you modify it to use descriptive terms rather than /Product2/ or /category2/ etc, keywords in the URLS are such a huge SEO advantage that regardless of the load placed on the database, its well worth it. Of course this can manually be achieved using the URL aliases, but for each product you have to modify the URL twice (once for the product URL and once for the category link to the product URL)

An automated keyword laced SEF URL would be a huge benefit to OpenCart.

I've only just started to play with the script but intially i'm very, very impressed.

SEO Blog | UK Website Directory


New member

Posts

Joined
Sun Jul 29, 2007 4:20 pm

Post by chomp » Mon Jul 30, 2007 1:22 am

not really. that is the correct way, but this was just a quick fix.

if you want to use verbose vars, you'll need to modify the code to create auto aliases. the idea here is this, when someone saves a product or page, you take the product name or page title and prepare it by removing special chars and replacing spaces with dashes, then save it to the alias table.

New member

Posts

Joined
Sat Feb 24, 2007 7:19 am
Who is online

Users browsing this forum: No registered users and 1 guest