rewrite rules – “/” URLs without trailing slash shows 404

Question

By default any URL on my website will end with a trailing slash.

So if I publish a post or page, the URL will end with a “/”. But I came across a weird situation where I hit publish but the URL with “/” works but without “/” does not work. And when I clear the cache on the WordPress website. both URLS work. with or without trailing slash.

I was reading this article to see properly configure my rewrite rules.

https://www.danielmorell.com/guides/htaccess-seo/redirects/https-www-and-trailing-slash

If anyone can help me understand what this issue could be.

0
Neha Patel 6 months 2022-02-01T11:23:15-05:00 0 Answers 0 views 0

Leave an answer

Browse
Browse