Home › Forums › General issues › Avoid landing page redirects
- This topic is empty.
-
AuthorPosts
-
October 6, 2016 at 6:10 am #15890
Filname
ParticipantHello,
I tested my site with GTmetrix.
One of the anwers is :
Avoid landing page redirects for the following chain of redirected URLs.
http://mydomaine.com/
https://mydomaine.com
https://www.mydomaine.comHave you got an idea to solve the problem.
Thanks for your help
All the best
October 6, 2016 at 8:41 am #15903Rogier
KeymasterFor a detailed explanation see this article:
https://really-simple-ssl.com/knowledge-base/redirect-non-www-to-www-domains-in-htaccess/If the redirects are 301 permanent, there should be no issue.
Because Really Simple SSL aims for best practices, the redirect is handled so you can enable HSTS. If you redirect while “avoiding landing page redirects”, in other words, you redirect on in one go from http://domain.com to https://www.domain.com, you can’t use HSTS in a secure way, as explained in the article above.
October 6, 2016 at 2:49 pm #15914Filname
GuestThanks for your quick anwers. I keep Relly Simple SSL like this. it’s work vey well.
Thank again for the precision brought
Best Regards
January 21, 2017 at 10:03 am #23293Michel Luarasi
GuestHello
I got a similar problem here.
Google PageSpeed Insights reported this chain of redirects:
http://www.michelluarasi.com/work
http://michelluarasi.com/work
https://michelluarasi.com/work
https://michelluarasi.com/work/Do you have an idea how to fix this?
Thanks for your help.
Best,
MichelJanuary 21, 2017 at 11:23 am #23299Rogier
KeymasterAs long as the redirects are 301 permanent, it should not be a problem: Google will use only the end result in the search results. But if you want you can add a redirect for each type of request to make it redirect directly to the primary domain.
For example, a request for http://www.domain.com first redirects to the http://domain.com You can use the following instructions to make it redirect to https directly.
https://really-simple-ssl.com/knowledge-base/redirect-non-www-to-www-domains-in-htaccess/
January 21, 2017 at 11:58 am #23303Michel Luarasi
GuestHello Rogier
Thanks for your reply.
The plugin seems to work fine. I had some other permalink and seo-plugin issues. My goal was to have a clean URL no “WWW” and no trailing “/” with the least possible redirects. It works now!
Thanks a again,
Michel LuarasiMay 30, 2017 at 4:30 am #39046Hafizie Jamaludin
GuestHi i got some isssue, i dont mind redirection from http to https but what is bother me is this another one
http://heaxabell.com/
https://heaxabell.com/
https://heaxabell.com/?v=0fd3f8dd5edc —-> what is this & How to remove this?May 30, 2017 at 8:14 am #39087Rogier
KeymasterThat looks like the geo plugin from WooCommerce. You can disable it in the WooCommerce settings I think.
July 10, 2017 at 6:58 am #43514Frank
GuestHi Rogier,
I’m facing the same issue as mentioned before, when i test my site speed it comes up saying that
the http www moves to https www
and the https www moves to https non www
both 301 moved permanentlyI don’t understand how to avoid this and if I actually should
My site doesn’t manage personal data but the email address in case someone leaves a commentCan you give me an advice in regard?
Thanks for your help
FrankJuly 10, 2017 at 8:20 am #43517Mark
KeymasterHi Frank,
I would advise to leave it the way it is. As long as the redirects are 301 permanent and done via .htaccess it doesn’t matter, since search engines will only use the latests result and the .htaccess redirect is very fast. For a more detailed explanation about why these redirects happen and instructions on how to bypass them you can use the following article:
https://really-simple-ssl.com/knowledge-base/redirect-non-www-to-www-domains-in-htaccess/
Mark
August 11, 2017 at 6:37 pm #47345Vitaliy Vinogradov
GuestEvery 301 has around a 10% drop in link juice, I rather have 10% than 20% so is there a real fix or not?
August 16, 2017 at 12:43 pm #47722Mark
KeymasterHi Vitaly,
see the following article if you want to eliminate redirects: https://really-simple-ssl.com/knowledge-base/redirect-non-www-to-www-domains-in-htaccess/.
Mark
August 21, 2017 at 9:22 am #48319Margaret
GuestHello everyone,
I noticed these issues in GT Metrix:
Avoid landing page redirects for the following chain of redirected URLs.
http://www.arpa.gr/
http://www.arpa.gr/
arpa.gr/en/home___/This is my .htaccess:
# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ – [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule># END WordPress
The customer who own this site, complains about site’s speed. I red the article you mentioned above, but I am not sure how to change the .htaccess file. Is it necessary? Whenever I make changes to .htaccess, the site brokes. Can you help me please?
August 21, 2017 at 9:28 am #48322Margaret
GuestI guess something gone wrong with my previous post..
this is my .htaccess:
<IfModule mod_rewrite.c> RewriteEngine On RewriteBase / RewriteRule ^index\.php$ - [L] RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule . /index.php [L] </IfModule>
www.arpa.gr/ www.arpa.gr/ arpa.gr/en/home___/
The customer who own this site, complains about site’s speed. I red the article you mentioned above, but I am not sure how to change the .htaccess file. Is it necessary? Whenever I make changes to .htaccess, the site brokes. Can you help me please?
August 22, 2017 at 2:50 pm #48544Mark
KeymasterHi Margaret,
you seem to use a 302 redirect to redirect from the arpa.gr to apra.gr/en/home.
arpa.gr
302 Moved Temporarily
arpa.gr/en/home___/
301 Moved Permanently
arpa.gr/en/home___/
200 OKUsing a 302 redirect is generally not advised. A 302 redirect means the redirect is temporary. It would be better if you use a 301 redirect for that as well. Have you tried enabling the ‘.htaccess redirect’ option in Really Simple SSL? That should add the right redirect to https:// automatically so you don’t have to change to .htaccess manually.
Mark
August 23, 2017 at 8:10 am #48659Margaret
GuestThank you for your answer.
So, if I enable that option I should change the .htaccess back to default or it doesn’t matter?
Margaret
August 23, 2017 at 8:36 am #48660Margaret
GuestOk, so I followed these steps showed in this link
https://really-simple-ssl.com/knowledge-base/remove-htaccess-redirect-site-lockout/
but the site broke down.
So I changed the settings back to what I had.
What now…?
September 12, 2017 at 10:06 am #51359Margaret
GuestHello again, please, any suggestions to my previous posts?
September 12, 2017 at 12:31 pm #51370Rogier
KeymasterWhat I currently see: The redirect to https is a 301 redirect as it should, probably handled by Really Simple SSL. But there is a redirect prior to that, which is a 302 redirect, from http://arpa.gr/ to http://arpa.gr/en/home___/
Depending on how you have set up your site, this might be caused by a plugin or by a .htaccess setting.
Here are instructions how to redirect your domain, but as this redirect is not a Really Simple SSL redirect, I can’t say if this will work or if you need to disable this other redirect somehow.
https://really-simple-ssl.com/knowledge-base/redirect-non-www-to-www-domains-in-htaccess/October 19, 2017 at 9:41 pm #57479Vale
GuestHello, I need your help
I have a strange situation, When I check Gtmetrix, Pingdom and Google speed test …
All show that I have a 301 redirection
Http//www.mysite.com/theme/library/images/disc.png
1) I don´t have any image called disc.png in my media library
2) I don´t have any .htacess redirection nor on CPANEL redirection feature.
3) the EXPIRES on that image is Wed, 11 Jan 1984 05:00:00 GMTServer
Apache
Keep-Alive
timeout=2, max=499
Date
Thu, 19 Oct 2017 20:26:45 GMT
Connection
Keep-Alive
Vary
Accept-Encoding,Cookie
Cache-Control
max-age=86400
Content-Type
text/html; charset=UTF-8
Location
http://mysite.com
Transfer-Encoding
chunked
Expires
Wed, 11 Jan 1984 05:00:00 GMT
Request Headers
Connection
keep-alive
Referer
http://mysite/
User-Agent
Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/58.0.3029.96 Safari/537
.36
Accept-Encoding
gzip, deflate, sdch
Accept
image/webp,image/*,*/*;q=0.8
Accept-Language
en-US,en;q=0.8
HostOctober 20, 2017 at 8:12 am #57551Mark
KeymasterHi Vale,
it’s hard to say what might be causing this without knowing your site address. Could you give me your url? Can you find the image in the console?
Mark
January 18, 2018 at 4:47 pm #72694Micropedia
GuestAnd if my website is on windows? What to do on an IIS server to avoid redirects where i haven’t htaccess? Regards
January 19, 2018 at 8:53 am #72765Mark
KeymasterHi,
you could have a look at the httpRedirect option in the IIS server configuration, see the following article: https://docs.microsoft.com/en-us/iis/configuration/system.webserver/httpredirect/. You can set the redirect depending on your site address in the WordPress general options, see https://really-simple-ssl.com/knowledge-base/avoid-landing-page-redirects/.
Mark
March 21, 2018 at 5:56 am #85154Mac Rob
GuestI recently installed and activated Really Simple SSL plugin in my wordpress. Today when I checked gtmetrix score, it showed me —
Avoid landing page redirects for the following chain of redirected URLs.
http://sansarlochan.in/
https://sansarlochan.in/
https://www.sansarlochan.in/All links are jumping to https:// that I really need. It is fine. But after reading above comments, I crossed check my .htaccess file to know what is going on! I found following code there :-
#RewriteEngine On
#RewriteCond %{HTTP_USER_AGENT} ^.*(bot|crawl|spider|80legs).*$ [NC]
#RewriteCond %{REQUEST_URI} !^/robots\.txt$
#RewriteRule .* – [R=503,L]
# BEGIN WPSuperCache
# END WPSuperCache
# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ – [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>
# END WordPressI read Rogier’s comment above, he stated “If the redirects are 301 permanent, there should be no issue.”
But can anybody tell me, where can I find that I have 301 permanent redirect? In above .htaccess file, is there written anywhere? Did Really Simple SSL did 301 permanent redirect? Where can I check it?
Thanks for your patience to read this long comment.
March 21, 2018 at 3:20 pm #85182Mark
KeymasterHi,
having a redirect chain is normal and isn’t an issue when the redirects are 301 permanent redirects. Really Simple SSL sets a 301 redirect. You can check the redirect types here: http://www.redirect-checker.org/
Mark
June 13, 2018 at 5:28 am #104635Mukesh patel
GuestHello sir i am using wordpress how to avoid landing pages
http://technology9.com/
https://technology9.com/
https://www.technology9.com/
How to solve with pluging and without pluginJune 13, 2018 at 7:59 am #104663Mark
KeymasterHi Mukesh,
Really Simple SSL will redirect to https://, the second redirect is to your WordPress site address which contains www. If you visit http://www there will only be one redirect, having your redirect chain is normal and nothing to worry about. If you do wish to remove a redirect, you can use one of the code examples in this article.
Mark
August 29, 2018 at 8:37 am #124079Naveen Kumar
GuestHello sir i am using wordpress how can I use really simple ssl and want to redirect to SSL
http://digitalrajeev.com
How to solve with plugin and without pluginAugust 29, 2018 at 2:40 pm #124124Rogier
KeymasterThe plugin handles this automatically, you can also enable the .htaccess redirect. Manually, see this article: https://really-simple-ssl.com/knowledge-base/manually-insert-htaccess-redirect-http-to-https/
September 20, 2018 at 10:23 pm #130535thermal oil heater
GuestThanks informations
-
AuthorPosts
- The topic ‘Avoid landing page redirects’ is closed to new replies.