New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

trailingslash check #32

Closed
mustafauysal opened this Issue Oct 23, 2017 · 1 comment

Comments

Projects
None yet
1 participant
@mustafauysal
Copy link
Member

mustafauysal commented Oct 23, 2017

WordPress redirects to canonical address when the permalink option ends with / and page uri doesn't end with trailing slash. Predefined configurations should respect that.

@mustafauysal mustafauysal added the bug label Oct 23, 2017

@mustafauysal

This comment has been minimized.

Copy link
Member

mustafauysal commented Nov 12, 2017

rules for nginx and .htaccess supported servers

nginx: rewrite ^([^.]*[^/])$ $1/ permanent;

.htaccess:

    RewriteCond %{REQUEST_URI} !\.[^./]+$
    RewriteCond %{REQUEST_URI} !(.*)/$
    RewriteRule ^(.*)$ /$1/ [R=301,L]

mustafauysal added a commit that referenced this issue Nov 12, 2017

@mustafauysal mustafauysal added this to the 1.2 milestone Dec 8, 2017

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment