Avoid landing page redirects for the following chain of redirected URLs.
Hello,
Something is wrong, yesterday everything was working properly until today, I honestly can not remember if I changed anything, however I keep getting on google PageSpeed Insights "
http://example.com
https://example.com
So what exactly happening is the page is getting redirected twice to http before it is forced to open with https. Please do not tell me htaccess I have developed hundreds of websites and never had such an error. Please help and thanks in advanced.
So what exactly happening is the page is getting redirected twice to http before it is forced to open with https. Please do not tell me htaccess I have developed hundreds of websites and never had such an error. Please help and thanks in advanced.
-
I figured what the problem is, the problem is that: 1. you go to: mywebsite.com 2. the website gets redirected to mywebsite.com/ "notice the trailing slash at the end" 3. it gets redirected to https://mywebsite.com/
This is doable by htaccess, however I haven't done any changes, all I remember is I was configuring the server and all of sudden this happened, this must be doable from cpanel, isn't it? If it is not then it is fine I will do that on .htaccess Thanks0 -
Hello, Can you let us know the contents of any existing rules in the .htaccess file under the document root associated with this domain name? Also, can you verify if you've enabled any custom Apache include files, or if you are using a PHP application on this domain name that could possibly utilize functions that redirect traffic? Thank you. 0 -
Hello, Can you let us know the contents of any existing rules in the .htaccess file under the document root associated with this domain name? Also, can you verify if you've enabled any custom Apache include files, or if you are using a PHP application on this domain name that could possibly utilize functions that redirect traffic? Thank you.
Hi, The following is the .htaccess content:## # @package Joomla # @copyright Copyright (C) 2005 - 2018 Open Source Matters. All rights reserved. # @license GNU General Public License version 2 or later; see LICENSE.txt ## ## # READ THIS COMPLETELY IF YOU CHOOSE TO USE THIS FILE! # # The line 'Options +FollowSymLinks' may cause problems with some server configurations. # It is required for the use of mod_rewrite, but it may have already been set by your # server administrator in a way that disallows changing it in this .htaccess file. # If using it causes your site to produce an error, comment it out (add # to the # beginning of the line), reload your site in your browser and test your sef urls. If # they work, then it has been set by your server administrator and you do not need to # set it here. ## ## No directory listings IndexIgnore * ## Can be commented out if causes errors, see notes above. Options +FollowSymlinks Options -Indexes ## Mod_rewrite in use. RewriteEngine On ## Begin - Rewrite rules to block out some common exploits. # If you experience problems on your site then comment out the operations listed # below by adding a # to the beginning of the line. # This attempts to block the most common type of exploit `attempts` on Joomla! # # Block any script trying to base64_encode data within the URL. RewriteCond %{QUERY_STRING} base64_encode[^(]*\([^)]*\) [OR] # Block any script that includes a0 -
It is being added to the domain, I can do this from htaccess, but I still didn't test with applying any rewriting rules to .htaccess, so I am really not sure why this happened, but I remember when it started to happen it started to happen after I might have been enabled or disabled something but I can not remember what.
Hello, Could you open a support ticket using the link in my signature so we can take a closer look? Thank you.0
Please sign in to leave a comment.
Comments
4 comments