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

Avoid http:// redirect before https:// #4

Open
pangeaos opened this issue Mar 23, 2017 · 0 comments
Open

Avoid http:// redirect before https:// #4

pangeaos opened this issue Mar 23, 2017 · 0 comments

Comments

@pangeaos
Copy link

I'm working to improve the speed on my grails app. I'm getting this message from seositecheckup.com

Your URL performed one redirect! While redirects are typically not advisable (as they can affect search engine indexing issues and adversely affect site loading time), one redirect may be acceptable, particularly if the URL is redirecting from a non-www version to its www version, or vice-versa.
from: http://www.example.com/ to: https://www.example.com/

I have my app on heroku.

my htacces file

RewriteCond %{HTTP_HOST} ^crtalleres\.com$ [OR]
RewriteCond %{HTTP_HOST} ^www\.crtalleres\.com$
RewriteRule ^(.*)$ "https\:\/\/www\.crtalleres\.com\/$1" [R=301,L]

ApplicationController

@SSLRequired

Is there any idea to avoid that redirect?

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

No branches or pull requests

1 participant