It might be that WordPress is just redirecting to the version with trailing slash.
/cart
=>/cart/
/shop
=>/shop/
I’m having trouble, finding a good canonical source why WP is doing this. The fact is, that most web frameworks (I worked with) will force trailing slashes on their routes (that are not directed at files).
If you want to read more: there is this blog post on trailing slashes and URIs in general, and this StackOverflow thread has some good points as well.
Related Posts:
- Load time cost of using a redirect plugin v direct .htaccess entry
- How to get better performance for redirect from domain.tld/35 to domain.tld/full-permalink?
- How to redirect non-logged in users to a specific page?
- Why is WordPress redirecting from http to https on a local environment?
- Non-WordPress page in subdirectory under WordPress page
- Clarification on auth_redirect()
- Implementing global redirection (automatic redirect for all pages who had their slug changed)
- Redirect to custom url when registration fails?
- Restrict Access to wp-login.php
- How to redirect url requests to https? [closed]
- Best way to handle redirects
- Problem to redirect custom page using htaccess
- WordPress within a subdirectory of another WordPress environment doesn’t work
- wp-login.php — redirect logged in users to custom URL
- Website redirecting to old domain name
- How to do 301 redirect to Sub page using htaccess file?
- Redirect feed to 404 page
- Does WordPress automatically redirect url without parent slug?
- Hiding WordPress behind IIS redirects
- Redirect guest if he tries to access a specific page
- Localhost wordpress site redirects to public site
- Redirect homepage ( www.sitename.com ) to the latest post
- Redirect all post into some category to url without category
- Redirect from sub-directory to root – New WordPress 5.2.3 Set up
- What is the right way to redirect all traffic to HTTPS?
- Site loads very slowly (4-5 minute load time)
- Where’s the redirect happening? [closed]
- Front end user creation form! How do you keep the user on the same page in event of error?
- URL redirect problem
- 503 Service Unavailable error was encountered
- WP site in infinite redirect loop
- Regex with HttAccess
- Regex redirect rule for missing part of the path
- Page template that redirects user based on role
- How can i resolve 301 redirection Issue on my website?
- Redirect non-existent subpages to second part of url
- https – too many redirects
- How to remove the [L] Flag for WordPress index .php mod_rewrite
- How do I remove the RSS Feed Redirect?
- Why does WordPress redirect when I separate wp-core and wp-content?
- Two WordPress installations: One in root and one in sub directory – no images in subdir installation [closed]
- User redirect to specific URL after logging in
- What is the most efficient (ie. less server intensive) way for 301 redirects?
- Logout without confirmation and SAME window on mobile
- How to redirect a wrong search on my wordpress website to the error 404 page?
- adding GET variables to a header() location in a page template
- Migrating to Tumblr [closed]
- WordPress CSS/Theme gone after SSL got activated
- Redirect 301 of old urls to wordpress urls
- How can I redirect a request to the site root using htaccess, if there’s not a specific cookie set?
- How to fix automatic redirects?
- redirect “about author” code to about page
- get_bloginfo prints IP instead of url
- How to redirect non existent pages/posts in wordpress using htaccess
- How to redirect all page requests to a single “goodbye” homepage? [duplicate]
- redirect second domain to static page
- Endless Redirects Suddenly Disable Site
- Redirecting home to /wp-login.php?action=register
- How to redirect a child page to its parent page?
- Redirect when not logged and parametr in link
- Browsers Forcing Multisite to https
- Is it possible to change redirect template through a shortcode?
- How do redirect user back to previous page when on certain pages?
- Deleted Image giving a 301
- Relink Drupal Permalinks “…node/XXXX” to wordpress Permalinks (e.g./audio/)
- Keep the old referrer after failed login
- How to 301 redirect WP posts id “/c/94940894” to permalink with post name?
- WP 301 redirect does not work
- Redirect Image URL to it’s parent post
- Redirect user if they are logged in
- 301 Redirect Link to Media
- WordPress Redirect post to outside website based on useragent
- WordPress site not forcing from http to https instead getting redirected too many times
- Redirect not work
- There is 1 redirect
- HOW do you Redirect buddypress login to EDIT tab not PROFILE tab on profile page? [closed]
- WordPress redirects to backend when i’am not logged in
- Redirect to custom admin menu after plugin activation
- All new posts serving 301 redirect
- home page redirect loop after update to 4.8
- Moving site from HTTP to HTTPS
- Redirect from plugin created page
- How can I redirect to another page with screen already at the bottom of the page?
- How is this URL being redirected?
- What’s the best way to redirect to a new wordpress website?
- Tag archive page not working
- 301 Redirect only for posts
- Custom redirects with using SQL
- Why is WordPress redirecting to homepage after GET form submit?
- Redirect after user changes password
- Getting error when trying to redirect WP site to mobile site
- wp_login_form: Redirect to dynamic url according to username
- Plugin redirects URL structure using 301 redirect. Time to disable the plugin?
- Hide page for user logged and redirect for profile? [duplicate]
- Redirect URL while building site
- Redirect ignore last URL segment
- Creating custom link that redirects to a another link
- Other pages fine but wp-admin showing ERR_TOO_MANY_REDIRECTS Error
- How to disable login and registration pages?
- How to find out what is causing redirect of static content?