Skip to content
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

Sometimes a Double Redirect (Trailing Slash) #915

Open
jaswrks opened this issue Nov 6, 2017 · 0 comments
Open

Sometimes a Double Redirect (Trailing Slash) #915

jaswrks opened this issue Nov 6, 2017 · 0 comments

Comments

@jaswrks
Copy link

jaswrks commented Nov 6, 2017

The Apache Optimizations in Comet Cache are adding this line to the .htaccess file.

RewriteRule ^(.*)$ $1/ [QSA,L,R=301]

Not a problem, but if someone attempts to access a site over http:// and there is also an https:// redirect that needs to take place, this results in two redirects instead of one. Simply because the trailing slash redirect that Comet Cache uses doesn't specifically state what protocol to use, it just keeps the existing protocol. Which again, is fine, because an https:// redirect can occur next. However, if we change this to use the right protocol to begin with, we can shave one additional redirection off for some site owners that enforce https://.

Referencing internal/private ticket.
https://secure.helpscout.net/conversation/459070945/2394/

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

No branches or pull requests

1 participant