Quantcast
Channel: WordPress.org Forums » [WooCommerce] Support
Viewing all articles
Browse latest Browse all 104029

Trailing slash not added to products

$
0
0

Replies: 2

Hi,
I noticed an issue with canonical URLs and that prompted me to look into this issue.
I generally have trailing slashes on all my pages, but somehow they do not appear for products on archive pages. E.g. my shop page is here: https://citationstyler.com/zitierstile/

I also added the following rule to the end of my .htaccess, but that didn’t change anything:

# Force trailing slash
<IfModule mod_rewrite.c>
RewriteCond %{REQUEST_URI} /+[^\.]+$
RewriteCond %{REQUEST_URI} !^/wp-json
RewriteRule ^(.+[^/])$ %{REQUEST_URI}/ [R=301,L]
</IfModule>

I’d be grateful for any insights. Thank you. 🙂


Viewing all articles
Browse latest Browse all 104029

Trending Articles