Forums Forums Search & Filter Pro Archive Page reachable with and without trailing slash at end of URL

Viewing 9 posts - 11 through 19 (of 19 total)
  • Trevor
    #148990
    This reply has been marked as private.
    Anonymous
    #149101
    This reply has been marked as private.
    Anonymous
    #149105
    This reply has been marked as private.
    Trevor
    #149109
    This reply has been marked as private.
    Anonymous
    #149116
    This reply has been marked as private.
    Trevor
    #149120

    Does that work then?

    Anonymous
    #149268
    This reply has been marked as private.
    Ross Moderator
    #155412

    Hi there

    I double checked, and default WP behaviour allows both accessing archive urls with and without a trailing slash.

    Anyway, I tested some common fixes to force use of trailing slash across your entire WP installation and this worked for me:

    https://paulund.co.uk/using-htaccess-to-force-trailing-slash

    I added the code to the bottom of my htaccess and it didn’t work, so I added it to the start, before # BEGIN WordPress and it worked, so my htaccess looked like:

    <IfModule mod_rewrite.c>
    RewriteCond %{REQUEST_URI} /+[^\.]+$
    RewriteRule ^(.+[^/])$ %{REQUEST_URI}/ [R=301,L]
    </IfModule>
    
    # 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>
    # END WordPress

    Thanks

    Anonymous
    #155579

    Hi Ross,

    thanks for your efforts, I really appreciate it. We’ll try this out as soon as possible.

    We’re really looking forward what you guys have planned for version 3.0 of Search & Filter 😉

    cheers

Viewing 9 posts - 11 through 19 (of 19 total)