Forum

UrlToolkit for WooCommerce

Chandra
29 September 2015, 14:59
Hi, I want to setup an online shop using WooCommerce for WordPress. The permalink for blog, page, etc is fine but if I accessed the product page that created by WooCommerce then the problem occurred: 404 Page Not Found. The same with Sitemap page created with Yoast SEO. I disabled permalink and using the "ugly" url then it's all fine and can be accessed normally.

So anyone can help me what is the correct UrlToolkit code for WooCommerce and Yoast SEO (for sitemap).

Thanks! Hiawatha is great web server for my NAT VPS.
Hugo Leisink
29 September 2015, 23:25
What are the URL rewrite rules that come with WooCommerce? Probably for Apache.
Chandra
30 September 2015, 01:44
Hi Hugo, I only find this on .htaccess from my other WooCommerce site:
# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>


I think it's the same with plain WordPress permalink rewrite?

Thanks.
Hugo Leisink
1 October 2015, 08:58
Yes, give the Wordpress UrlToolkit rule a try. It should work.
Chandra
2 October 2015, 02:15
Ah... sorry I didn't mentioned it before but I already use UrlToolkit rule for WordPress in Hiawatha. It's only failed in permalink for WooCommerce products url: example.com/products/name-thing-here
Hugo Leisink
2 October 2015, 22:29
I don't know Wordpress or WooCommerce that well. If you can tell me the required Apache rewrite rule, I can translate it for you.
Chandra
3 October 2015, 05:02
That is the problem. I don't see anything different in
.htaccess
and while searching in Google nothing positively related to this problem. For now I just leave permalink format to default (no permalink):
http://example.com/?product=the-product-name-here
This topic has been closed.