Skip to content

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

Open
@pangeaos

Description

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?

Activity

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

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions