• Resolved boxhamster

    (@boxhamster)


    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. ??

    The page I need help with: [log in to see the link]

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter boxhamster

    (@boxhamster)

    Every single time. I post and then find the solution minutes later. haha
    Solved:
    Moved above .htaccess redirect rule to the top of the file and that somehow made it work.

    Plugin Support Moses M. (woo-hc)

    (@mosesmedh)

    Hi @boxhamster,

    Ahh ha, I guess that makes you a genius. I’m glad you were able to resolve the issue.

Viewing 2 replies - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.