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
-
301 Redirect or landing page
Hi everyone. I'm currently doing some SEO for a client, at the moment he has some landing pages which are categorised, but the category is set as a 302 redirect. I have a dilemma whether to 301 redirect to the landing page or make a page for each category. The link structure is as follows - http://examplesite.co.uk/products/fire/company-1/product/ so currently this is set as a 302 redirect - http://examplesite.co.uk/products/fire/company-1/ Do I make this page a category page and link the page to the children with some on-page optimisation or 301 redirect it?
On-Page Optimization | | Unbranded_Lee0 -
How to view all 'followed internal links' on a page
I am trying to view all the followed internal links on a few pages of my website. The MOZ toolbar just gives me the total number of internal followed links. What is the best way to actually see all the internal links that are followed by the google bot from any particular page? Thanks in advance.
On-Page Optimization | | rjchugh0 -
Are Back Links King
We have worked as closely as possible to the guidelines and advice on this forum, if we compare our on page Analsis with other companies in the same field as ours we have a far better site as far as SEO is concerned, our DA authority is higher and most of our page authority is higher but we just cannot seem to get up to their level in the search engines, one site that is in competiton with us do not use Facebook and also they do not use Twitter very much, I looked at some of their backlinks and their top one which was a blog had not been updated since 2011, over the years we have amassed far more what I would call worthless links as this was the done thing then, how can I get on the right track, are there any companies who could assess our site for a reasonable cost to point us in the right direction, we are doing our own blog, Facebook, Twitter, Onlywire?
On-Page Optimization | | Palmbourne0 -
How can I reduce Too Many On-Page Links? I am looking for best method through which I can reduce by on page link.
Hello, As I have the Pro Account in SEOMOZ . I have created the campaign for my website and I have seen the warring for on page analysis for Too Many On-Page Links. As per my knowledge in past it's matter that you can put maximum 100 links per page but now is it still matter or harm if pages has Too Many On-Page Links? And if yest then please let me know the best method to reduce my On-Page Links with out doing any major changes in website
On-Page Optimization | | jemindesai0 -
Changing the url of a page
Hello. I would like to change the url of a page. It currently has very few inbound links. I would set up a 301 redirect to the new url. Is there anything else I should take into account before changing the url? Is there a downside to changing a url? Do inbound links carry the same value when a 301 redirect is involved? Thank you!
On-Page Optimization | | nyc-seo0 -
The Value of Internal Links?
I have seen countless SEO "experts" suggest internal links are great to help the search engines find your content. I wonder if that is true any more. It seems like a sitemap would do a better job. I think tags may even hurt the content I want to Google to know as most important. I'm using Simple Tags on all of my WP sites. If it "sees" a word in the article that is also a tag it adds a link for that tag to a listing of all the articles with that tag. It only does this once per tag though. Going on the experts advice, I thought this was a good idea. But now, I'm thinking these tags reduce the value of links to my eBook or other content i want to feature. Which doesn't get tagged much since I don't promote it all that often on my site within content. I make it nearly impossible to miss it on the site though. 🙂 What I do see the tags doing is helping users find the content. So I do see it improving the bounce rate and giving uses an assist in finding more content about what they are looking for. I have tags marked as noindex follow. But I'm really considering now removing the links. I hate plugins anyway. 🙂 Seems I'm always finding another must have plugin though. Now I'm thinking I'd be better off to just add links manually into the content that I really want to feature. All these automatic links I'm generating can't be good. Thanks for your thoughts on this.
On-Page Optimization | | RustyF0 -
404 link | How to remove the link so it is not found?
My report has listed a few links with 404 errors. They are internal links but are not found. Is there a way to remove that link so it is not found again? Thanks
On-Page Optimization | | SavingSense0 -
If I have too many on-page links can I reduce it with nofollow tags or do the links have to be removed?
On my site I have a top nav drop down menu but once visitors go to one particularly large subsection, that menu is repeated on the left for easier viewing. As a result, I shoot over 100 links on page. Can I put nofollow or noindex tags on the left side links and reduce my "official" on-page links count or do I have to actually eliminate some of the links? Thanks, Oak
On-Page Optimization | | CSA-2316710