woocommerce / woocommerce

A customizable, open-source ecommerce platform built on WordPress. Build any commerce solution you can imagine.
https://woocommerce.com
9.41k stars 10.76k forks source link

Proper procedure for perfect permalinks, please #432

Closed GoElemental closed 12 years ago

GoElemental commented 12 years ago

I am hoping to get some help with my permalink setup in woocommerce.

I typically use the 'pretty' permalink structure of /%postname%/, but this breaks my catalog setup and returns a 404 error. I have even tried combinations such as /%category%/%postname%/, /page/%postname%/etc. but nothing works.

When i set my permalinks to the WP default, the catalog works perfectly, but my other non-catalog pages, such as 'Company Info' and 'Contact Us' have the crappy permalink [hxxp://mysite.com/?p=123] which looks horrible and is even worse for SEO.

I would ultimately like my site structure as follows: For my catalog: hxxp://mysite.com/mens/pants/bushmaster-cargo-pants (not too picky about this URL structure) For my static pages: hxxp://mysite.com/company-profile (MUST have 'pretty' permalink)

I am using WP 3.2.1 (until the theme dev updates for 3.3 compatibility) and Woocommerce 1.3.2.1

I also have Yoast Wordpress SEO v.1.1.2 and WooCommerce - All in One SEO Pack 1.1 installed. Tried the 'Canonical URL' setting under the 'Advanced' tab in Yoast, still no luck.

Any help would be most appreciated. Thanks for developing this great plugin and have a great day.

Ramoonus commented 12 years ago

why do you have 2 SEO plugins enabled?

Valdimarsson commented 12 years ago

WooCommerce - All in One SEO Pack 1.1 is a plugin which adds meta title/description/keywords for add product. As all in one seo plugin only adds it to add new in posts. I don't know if yoeast wordpress seo supports WooCommerce - All in One SEO Pack but that has nothing to do with the permalinks anyway.

I would ultimately like my site structure as follows: For my catalog: hxxp://mysite.com/mens/pants/bushmaster-cargo-pants (not too picky about this URL structure) For my static pages: hxxp://mysite.com/company-profile (MUST have 'pretty' permalink)

I've made the same setup as you. What I did was untick/disabled Taxonomy base page & Product base page for archives. Then I enabled product permalinks with product categories. It's just below the product base page in prodduct base page. It's all located in Woocommerce options > pages. What you'd want to do for the static pages is to put /%postname%/ in the permalink option in wordpress as you did already.

I've translated woocommerce into danish. If I'm wrong about the names please say so then I'll check for the real names in my po files. ;)

Edit: BTW there's one thing I can't figure and never will figure nor repair if I eventually found out because it would destroy seo on my site. How do you translate the product category into you native language? hxxp://mysite.dk/product-category/category-in-danish/ I would like to replace product category with nothing or rename it. Can't seem to figure out why it's there? Won't make a request because my site is in google and it would mean that I would have to make a lot of 301-redirects. and that's not an option.

GoElemental commented 12 years ago

Thanks, Haven't had a chance to come back to this, but I stumbled onto a solution I have the same setup as Vladimarsson on the Woocommerce > Settings > Pages tab But I used /%category%/ instead of /%postname%/in my main permalink setup and it works beautifully now.

Thanks and if I find out a translation solution i will report back.

ConradGalli commented 12 years ago

Hi, can u share the Danish translation?

Ramoonus commented 12 years ago

672