After HTTPS upgrade, should I change all internal links, or a general 301 redirect is better?
-
I recently upgraded to https.
Of course most internal links of my old posts are still http.
So I set up a 301 redirect in order to make the old link works.
In terms od SEO this is good or it is better to update all the internal links to https, manually?
In that case can I do it in batch with a search/replace command in the phmyadmin database?
any other suggested method?
thank you
-
Hi again. I've seen it. Quite honestly I disagree with absolutes being a priority. The arguments, presented in that WBF don't really work for me against the pain in development (I believe she mentioned even more drawbacks). Also, from my experience I have not seen any (at all) benefits in any way (SEO or loading speed) from having absolutes, rather than relatives.
-
Interesting Giorgio, I hadn't seen that WBF before.
Absolutely no disrespect to Ruth but that's the first WBF I've disagreed with. The scraper risk is something I'm willing to take a gamble on for the benefits of relative links and the other points are moot if your website is setup correctly (htaccess deals with the potential for different versions of your domain and IMO canonicalization should always be used).
Going by that WBF, if your site is set up correctly with redirects and canonicalization, the only benefit here is if a scraper copies your site and there's a very slim chance of this actually happening.
-
but...
wait a minute. this Moz posts suggests keeping you links absolute is "a priority" , from a seo perspective.
under point 2):
https://moz.com/blog/relative-vs-absolute-urls-whiteboard-friday
-
Exactly how to implement it will depend on your CMS but basically, all you need to do is update the hyperlinks from showing the entire link path to a simple, relative one like the examples below.
Absolute Anchor Text
Relative Anchor Text
With hyperlinks, if you don't specify the full address path including http://www then the current website path will be added to the beginning. In this example, since there is no full and complete path before /contact, it's correctly assumed that the link is to point to http://www.example.com/contact.
This is important because it means no matter what changes you make to your domain (www to non-wwww, moving to https, moving the site to a new domain etc) the links will always work perfectly. If you use an absolute path, the minute your change anything about your domain, all the links break because they're manually pointed to the old one.
Here's a bit more info on the topic if the above is a little confusing. It's not a link to my site, just the first I found in a Google search
-
Thank you very much /Dmitrii.
Can I change them to relative?
How should I do?
-
Hi there.
So, you have all your links absolute? not relative? Gotta be painful to manage..
Well, anyway, to answer your question - the only bad part about not changing links to https would be that extra redirect. If your servers are good, fast and very reliable, nobody would probably even notice it. I would check loading speeds though, especially for mobiles.
Personally, I would change all links to relative and never worry about stuff like this. If you want to keep them absolute, then yes, I recommend changing them all. Just for clean conscious sake
About find-replace. That would depend on how your website is built. I assume you're talking about wordpress? Then yes, you should be able to. As long as you know where to search.
Cheers.
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
-
Outbound links
Hi everyone, Just a quick question about using info/statistics from other sources in my articles. If I use a quote/piece of info from another online article do I just say where it's from and link to it? Is this acceptable or do you have to get permission? I find the whole permissions thing quite confusing! I know that outbound links are good for SEO so just wanted to check this. Thanks!
On-Page Optimization | | ClareO0 -
Wordpress #comment links?
We just started our trial account and have the results from our first Moz Pro Site Crawl. It's showing that we have a large portion of our pages have 'Too Many Links' and I'm trying to determine exactly what this means and how to fix it. The article referenced is from 2011 and doesn't fully address what I'm looking for. Here are a few questions: 1. Can we lower the 'link count' by adding a 'no follow' or does too many links, count links regardless? The question being, is the only way to solve this by removing links or are their no follow or no index options that will prevent us from having this issue moving forward? 2. Comment Links: Our site is in Wordpress and I just recognized that each of the comment links are followed: https://screencast.com/t/b0CIKVafWw. These aren't links from our users, rather these are links within Wordpress and are structured like this: https://mysite.com/blog-post/#comment-6970. From my screenshot you can see they are highlighted as 'followed links'. Is there a setting within Wordpress to turn this off or is there another option I should consider? Should we just make these no index, no follow links? Will that solve the 'Too many links' problem? I searched through the Q&A's and couldn't find an answer directly to my question. Most were around people leaving links in the comments section, which isn't what I'm looking for. Thank you for any help you can provide.
On-Page Optimization | | FabulesslyFrugal0 -
How long should I leave an existing web page up after a 301 redirect?
I've been reading through a few of blog posts here on moz and can't seem to find the answer to these two questions: How long should I leave an existing page up after a 301 redirect? The page old page is no longer needed but has pretty high page authority. If I take the old page down—the one that I'm redirecting from—immediately after I set up the 301 redirect, will link juice still be passed to the new page? My second question is, right now, on my index.html page I have both a 301 redirect and a rel canonical tag in the head. They were both put in place to redirect and pass link equity respectively. I did this a couple years back after someone recommended that I do both just to be safe, but from what I've gathered reading the articles here on moz is that your supposed to pick one or the other depending on whether or not it's permanent. Should I remove the rel conanical tag or would it be better to just leave it be?
On-Page Optimization | | ScottMcPherson0 -
Best practice for Portfolio Links
I have a client with a really large project portfolio (over 500 project images), which causes their portfolio page to have well over the 100 links that are recommended. How can I reduce this without reducing the number of photos they can upload?
On-Page Optimization | | HochKaren0 -
Www to non www redirect
HI there, I was worried that my folder was not being crawled as when I searched for site:www.thekeepsakeco.co.uk/marketplace nothing came up but today I tried site:thekeepsakeco.co.uk/marketplace it does. So it is forwarding the www to the non www. When I do a search on links or analyse the domain it says there is a forwarder in place. My site used to dominate in my niche and now is not doing very well since I moved to the new site. I know I did not handle the move well but wonder what I can do about it and wonder if this redirect is causing issues. So any link building it probably going to www. rather than non www so does that mean they are not counting. What would you do? move everything back to www and could I do a 301 redirect for the whole folder? Any help greatly received! Kindest regards Victoria Thanks Victoria
On-Page Optimization | | vcasebourne0 -
If Google still shows my old title in the search results then there is no way my title change could have changed my ranking yet right?
If Google still shows my old title in the search results then there is no way my title change could have changed my ranking yet right? In other words if I changed from TItleA to TitleB but search results and cache still show TitleA then any SERP drops or increases would still be entirely based on titleA right? Thanks.
On-Page Optimization | | Rezo0 -
What is the best setup for conical Links
Should I have the conical link state: 1. www.autoinsurancefremontca.com 2. www.autoinsurancefremontca.com/index.html 3. autoinsurancefremontca.com Also do you need a conical link on each page if you have more than one page on your site?
On-Page Optimization | | Greenpeak0 -
Links to Product pages
Hello all, I am still rather new to SEO and learning a lot every day. I do have a question. On our product search result pages (example http://shop.ferguson.com/search/bathroom-lighting)
On-Page Optimization | | Ferguson
It is currently set up so the image, text, price etc of a product is linking to that product page. Our question is, if we were to link the image and the product name - will this be seen as two links to the same page? Is this a bad thing having multiple links to the same page? I searched around to see how other ecommerce sites have similar pages setup and it seems they link the image and also the product name, and the description is not click-able, which allows a user to "Highlight" the text (this is not possible on ours) Which would be to correct approach for SEO as well as User Interface, the way we have it set up, or by going with the method of the question I asked, Thank you for any information on this! Nick0