ERR_TOO_MANY_REDIRECTS – htaccess Rewrite http to https

Home Forums BulletProof Security Free ERR_TOO_MANY_REDIRECTS – htaccess Rewrite http to https

Viewing 5 posts - 16 through 20 (of 20 total)
  • Author
  • #21256

    Hi, how I can force the the redirect from to ?

    AITpro Admin

    Modify your existing code and add non-www to www code:

    RewriteEngine On
    RewriteBase /
    RewriteCond %{SERVER_PORT} !=80
    RewriteCond %{HTTP_HOST} ^cabdrome\.com$ [NC]
    RewriteRule (.*)$1 [R=301,L]

    Thanks! No errors, but if I go here it remain there and it stopped to force HTTPS too. instead I need that if someone go here http://camdrome http://www.cabdrome and https://cabdrome will always go to https://www.cabdrome .

    AITpro Admin

    The problem is with your website itself.  When I look at the Source Code of your website you have both http and https links in your Source Code.  All links MUST be https and you cannot have any http links at all otherwise things will never work correctly such as redirects or rewriting.   To view the Source Code of your website – right mouse click on your website home page and click View Source or a similar command.  You will see http links in your Source Code (see below).  I can only tell you what needs to be fixed and not how to fix it.

    <html lang="en-GB" prefix="og: fb:">
    <link rel="pingback" href="" />
    var thispage = "";
    <link rel='stylesheet' id='cookieinfo-css' href='' type='text/css' media='all' />
    <link rel='stylesheet' id='contact-form-7-css' href='' type='text/css' media='all' />
    <link rel='stylesheet' id='font-awesome-css' href='//' type='text/css' media='screen' />
    <link rel='stylesheet' id='udefault-css' href='' type='text/css' media='all' />
    <link rel='stylesheet' id='Sparks-css' href='' type='text/css' media='all' />
    <link rel='stylesheet' id='PTSerifFont-css' href='//;ver=4.1.1' type='text/css' media='all' />
    <script type='text/javascript' src=''></script>
    <script type='text/javascript' src=''></script>
    <script type='text/javascript'>
    /* <![CDATA[ */
    var myAjax = {"ajaxurl":"https:\/\/\/wp-admin\/admin-ajax.php"};
    /* ]]> */
    <script type='text/javascript' src=''></script>
    <script type='text/javascript' src=''></script>
    kinjo beti

    Here’s the mail I got recently when I get this problem again
    The error messages I get are:
    Chrome: “Error 105 (net:ERR_NAME_NOT_RESOLVED): The server could not be found”
    IE: “IE cannot display the webpage”
    Outlook: “The server name you entered can not be found on the network…Please verify that you are online and that the server name is correct”
    I had tried safe mode w/networking before as well, tried again, no change.
    ERR_NAME_NOT_RESOLVED – Solutions Encyclopedia

Viewing 5 posts - 16 through 20 (of 20 total)
  • You must be logged in to reply to this topic.