HTTPS & Redirects
-
Hi
We're moving to https imminently & I wondered if anyone has advice on redirects.
Obviously we'll be redirecting all http versions to https - but should I be checking how many redirects are in each chain and amending accordingly?
If there's 4-5 in a chain, remove the middle unnecessary URLS ?
Advice please
-
Hi, We are on Magento and moving to https for all URLS soon as well. We have just had them on customer pages, checkout and admin but time to move on.
Interesting to read about those database redirects also. We have thousands in place over years as we've tidied up the catalogue and they get automatically created.A few years back I deleted them on a site upgrade and we seemed to take a knock in rankings... but it could have been the new site source code contributing to this also. Things have settled and we have good seo ... but ive concerns over changing to full https...eekkk.
What htaccess codes did you use to redirect all existing http urls to the https versions?
Was it just something like?RewriteEngine On RewriteCond %{HTTPS} off RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
-
The https migration will have the same URLS but I'm trying to tidy up the redirects we currently have
So each time a title is updated on the site, a new redirect is added to the database but the others are not removed.
Shall I just delete from the database? I just want to make sure I'm not deleting those old URLs with authority in the chain
-
Delete those one that do not have content.
Keep in mind that https migration is intended to hace almost the same URLs, only changing http for https.
Cant imagine why having those extra URLs in the middle of the chain.Is there something that Im missing?
-
I think each time they get a redirect request they just update all the existing URLs in the file.
My question is which ones do I delete? I need to update the first URL & the last & remove the middle but from the file I can't determine which URL was first in the chain...
-
Try to convince your dev team that those redirects are not needed.Â
If those middle pages dont exist, why the redirect?I'd settle in max 2 hops, that is 2 redirects. This is just my maximum.
The best for google: 1 redirect.
Max tolerated by google: 4-5. -
Hi
Yes, I am just trying to work out how our dev team manage the redirects.
I'm not sure whether they actually go through a redirect chain.. this is an example of the data pulled from the redirect export:
-
sloping-top-for-ekwo-industrial-1-tier-lockers redirect > sloping-top-for-manutan-industrial-lockers
-
sloping-top-for-industrial-1-tier-lockers redirect > sloping-top-for-manutan-industrial-lockers
-
sloping-top-for-industrial-lockers redirect > sloping-top-for-manutan-industrial-lockers
-
-
Hello Becky!
If possible, lower down the number of redirects even though Google understands well up to 4-5 hops. Matt Cutts said it in these videos:
Can too many redirects from a single URL have a negative effect on crawling? Is there a limit to how many 301 (Permanent) redirects I can do on a site?Best Luck.
GR.
Got a burning SEO question?
Subscribe to Moz Pro to gain full access to Q&A, answer questions, and ask your own.
Browse Questions
Explore more categories
-
Moz Tools
Chat with the community about the Moz tools.
-
SEO Tactics
Discuss the SEO process with fellow marketers
-
Community
Discuss industry events, jobs, and news!
-
Digital Marketing
Chat about tactics outside of SEO
-
Research & Trends
Dive into research and trends in the search industry.
-
Support
Connect on product support and feature requests.
Related Questions
-
Redirect Chain Advice
Hi, i hope you can help. My site crawl is showing that I have a redirect chain on my home page. Basically it shows I am going from : http: > https: > https://www. I need everything to go from http:// and http://www directly to https://www. without the chain. Below is a copy of the htaccess, can anyone see if there is an error in there that could be causing it. RewriteEngine On
Intermediate & Advanced SEO | | DaleZon
RewriteCond %{HTTPS} off
RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301] 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 In addition, i have seen that they have a plugin called SSL insecure content fixer installed. It is showing this under its status: Array ( [HTTPS] => on [PHPHANDLER] => /usr/local/php70/bin/php [HTTP_X_REAL_IP] => 109.158.20.158 [HTTP_X_FORWARDED_PROTO] => https ) I think possibly this might have something to do with the issue, any thoughts are appreciated Thanks0 -
Best practice to redirect http to https
I have an SSL certificate on our domain but at times some search results still list the HTTPÂ version. Clicking on this then warns the user about security and they leave. To avoid this I am using this in the htaccess file to redirect all HTTPÂ visits to the https version. RewriteEngine On
Intermediate & Advanced SEO | | Gavpeds
RewriteCond %{SERVER_PORT} 80
RewriteRule ^(.*)$ https://domain.com/$1 [R,L] Is this ok? I notice on Moz toolbar it give a 302 temporary redirect I am thinking this isn't good and needs to be a 301 maybe? What is the best practice in this situation?1 -
Text to Code Ratio & SEO
Hi Has anyone had experience of updating their text to code ratio if its too high & whether this has much impact on SEO performance? I am trying to prioritise tasks & wondered if this is something which should be higher on my list. Thank you 🙂
Intermediate & Advanced SEO | | BeckyKey0 -
Trouble with https
A new client of mine utilizes a ssl certificate, so his domain starts with https, it seems to be messing up the seo. I just ran a check with site explorer and if I copy and paste the https url into site explorer, it is not found. when I enter http, I get 1 backlink, no facebook likes and no internal links, all which are totally incorrect. Where do I start to sort this out?, htaccess, and what is the best strategy to take? Thanks so much for your assistance! Carin
Intermediate & Advanced SEO | | handsun0 -
Redirection - Seo trick?
Hi, After analyzing the site I found several Redirections of exact match domains. With different domain name extensions. Is Seo trick? Is the second website which i fond that is using this technique. Can anyone gives more details? Thanks
Intermediate & Advanced SEO | | nyanainc0 -
2-stage 301 redirects
Dear colleagues, I have quite an unusual situation with one of my client's websites, and I could use an advise from someone who experienced the same circumstances: They are currently planning on launching a new site under the same domain (by September), when several key current pages are intended to be replaced with new equivalent pages under new URLs. So far it's pretty simple, BUT - due to a merger with another company they will be migrating their entire website to a different domain within a year. My question is - what would be the optimal solution for redirects? We are considering a 301 from the current pages to the new pages under the same domain, and once the new domain is activated - aside from defining 301 redirects from the new pages under the same domain to the new domain, we will cancel the original 301 from the old pages to the new pages on the same domain, and instead define new 301 for those pages to the new domain. What do you think? Is there a better solution - like using 302 redirects for the first stage? Has anyone tried such a procedure? Your input will be highly appreciated! Thanks in advance, Omer
Intermediate & Advanced SEO | | Usearch0 -
Redirecting Canonical 301s and Magento Website
I have an issue with a client's website where it has 3700+ pages, but roughly half of them are duplicates. Thankfully, the only difference between the original and the duplictes is the "?print" at the end of each URL (I suppose this is Magento's way of making a printable page version of the same page. I don't know, I didn't build it.) My questions is, how can I get all the pages like this http://www.mycompany.com/blah.html?print to redirect to pages like this... http://www.mycompany.com/blah.html Also, do they NEED to be Canonical, or will a 301 redirect be sufficient. Also, after having done this, if anybody knows, is there a way I can turn that feature off in Magento, because we're expanding our product line, and I don't want to have to keep chasing after these "?print" pages after the fact.
Intermediate & Advanced SEO | | ClifThompson0 -
How to Resolve Duplication of HTTPS & HTPP URLs?
Right now, I am working on eCommerce website. [Lamps Lighting and More] I can find out both URLs in website as follow. HTTP Version: http://www.lampslightingandmore.com/ HTTPS Version: https://www.lampslightingandmore.com/ I have check one of my competitor who has implemented following canonical on both pages. Please, view source code for both URLs. http://www.wayfair.com ** https://www.wayfair.com** Then, I checked similar thing in SEOmoz website. 🙂 Why should I not check in SEOmoz because, They are providing best SEO information so may be using best practice to deal with HTTPS & HTTP. LOL I tried to load following URL so it redirect to home page. https://www.seomoz.org is redirecting to http://www.seomoz.org But, following URL is not redirecting any where as well as not set canonical over there. https://www.seomoz.org/users/settings I can find out following code on http://www.seomoz.org/robots.txt **User-agent: *** ** Disallow: /api/user?*** So, I am quite confuse to solve issue. Which one is best 301 redirect or canonical tag? If any live example to see so that's good for me and make me more confident.
Intermediate & Advanced SEO | | CommercePundit0