Forums › Forums › Search & Filter Pro › Archive Page reachable with and without trailing slash at end of URL
- This topic has 18 replies, 3 voices, and was last updated 8 years, 2 months ago by
Anonymous.
-
Ross Moderator(Private) January 28, 2018 at 7:33 pm #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 WordPressand 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 WordPressThanks
-
AuthorPosts