Post by gary » Fri Nov 30, 2007 5:54 am

here is the one I was working on:
http://www.stonesdelight.com

New member

Posts

Joined
Sun Nov 04, 2007 11:55 pm

Post by baris22 » Sat Jan 05, 2008 9:05 pm

hello,

how did you manage to get the urls like

http://www.stonesdelight.com/onyx-gemst ... -set-ON-07

thanks

Newbie

Posts

Joined
Sat Jan 05, 2008 9:03 pm

Post by gary » Sun Jan 06, 2008 3:12 am

first of all - I wrote entries like:

Options +FollowSymLinks
RewriteBase /

RewriteRule ^(.*)(agate/agate-opal-and-rutilated-quartz-set-AG-01)$ index.php?controller=product&path=31&product_id=12

in .htaccess


then added entries like:

controller=product&path=31&product_id=12  agate/agate-opal-and-rutilated-quartz-set-AG-01

in url alias configuration in admin


The trick is to remember that main page has different query string parameters than categories.

I ended up writing a script. The script had to get all categories and products for each category from database, then create htacces entries in file and to automatically enter url aliases in database. Then I copied and pasted results to the htaccess.

Not a simple way, I know. But since I am new to htaccess - it was good enough. I am sure that it is possible to do it a lot simpler - but I just did not look for other way yet.

New member

Posts

Joined
Sun Nov 04, 2007 11:55 pm

Post by OnlyBlue » Mon Mar 17, 2008 9:55 pm

I like it.

New member

Posts

Joined
Sun May 13, 2007 8:52 am
Who is online

Users browsing this forum: No registered users and 114 guests