Home › Forums › BulletProof Security Free › ERR_TOO_MANY_REDIRECTS – htaccess Rewrite http to https
- This topic has 19 replies, 3 voices, and was last updated 7 years, 5 months ago by kinjo beti.
-
AuthorPosts
-
cabdromeParticipant
Hi, how I can force the the redirect from https://cabdrome.com/ to https://www.cabdrome.com/ ?
AITpro AdminKeymasterModify your existing code and add non-www to www code:
RewriteEngine On RewriteBase / RewriteCond %{SERVER_PORT} !=80 RewriteCond %{HTTP_HOST} ^cabdrome\.com$ [NC] RewriteRule (.*) https://www.cabdrome.com/$1 [R=301,L]
cabdromeParticipantThanks! No errors, but if I go here http://cabdrome.com/ 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 AdminKeymasterThe 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: http://ogp.me/ns# fb: http://ogp.me/ns/fb#"> <link rel="pingback" href="http://www.cabdrome.com/xmlrpc.php" /> var thispage = "http://www.cabdrome.com/"; <link rel='stylesheet' id='cookieinfo-css' href='http://www.cabdrome.com/wp-content/plugins/CookieInfo/css/cookieinfo.css?ver=1.0' type='text/css' media='all' /> <link rel='stylesheet' id='contact-form-7-css' href='http://www.cabdrome.com/wp-content/plugins/contact-form-7/includes/css/styles.css?ver=4.1' type='text/css' media='all' /> <link rel='stylesheet' id='font-awesome-css' href='//netdna.bootstrapcdn.com/font-awesome/4.1.0/css/font-awesome.css' type='text/css' media='screen' /> <link rel='stylesheet' id='udefault-css' href='http://www.cabdrome.com/wp-content/plugins/ultimate-wp-query-search-filter/themes/default.css?ver=all' type='text/css' media='all' /> <link rel='stylesheet' id='Sparks-css' href='http://www.cabdrome.com/wp-content/themes/sparks/style.css?ver=4.1.1' type='text/css' media='all' /> <link rel='stylesheet' id='PTSerifFont-css' href='//fonts.googleapis.com/css?family=PT+Serif%3A400%2C400italic&ver=4.1.1' type='text/css' media='all' /> <script type='text/javascript' src='http://www.cabdrome.com/wp-includes/js/jquery/jquery.js?ver=1.11.1'></script> <script type='text/javascript' src='http://www.cabdrome.com/wp-includes/js/jquery/jquery-migrate.min.js?ver=1.2.1'></script> <script type='text/javascript'> /* <![CDATA[ */ var myAjax = {"ajaxurl":"https:\/\/www.cabdrome.com\/wp-admin\/admin-ajax.php"}; /* ]]> */ </script> <script type='text/javascript' src='http://www.cabdrome.com/wp-content/themes/sparks/js/myLibrary.js?ver=4.1.1'></script> <script type='text/javascript' src='http://www.cabdrome.com/wp-content/plugins/google-analyticator/external-tracking.min.js?ver=6.4.8'></script>
kinjo betiParticipantHere’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 -
AuthorPosts
- You must be logged in to reply to this topic.