-
Notifications
You must be signed in to change notification settings - Fork 15
Description
We're investigating a report of ZenCache preventing a WordPress site from redirecting example.com/test to example.com/test/ (with the slash).
I'm having varying success reproducing this issue. I can reproduce it on my live test site, but I cannot reproduce it on my local test site. At first I thought this had only to do with the .htaccess rewrite rules, but then I remembered seeing code in WordPress Core somewhere that looks at the permalink settings and redirects to the /-version if the trailing slash exists in the Permalink settings.
@jaswsinc writes...
Right. There is the
user_trailingslashit()function that handles this in permalink generation. https://codex.wordpress.org/Function_Reference/user_trailingslashit
See also: https://github.com/WordPress/WordPress/blob/ce557062f4123d8513378cf415b4e8b612c33ccc/wp-includes/canonical.php#L41
See also: http://httpd.apache.org/docs/current/mod/mod_dir.html#directoryslashThat does sound like it could be a bug. I will run tests against this later and see what I can do.