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
-
Is there Page Link Counter software?
Hi, I receive more than 100 links error and when i count the links, it is not even 100. I'd like to know how 100 links are counted. I was wondering if anyone can suggest me a tool and method that can help me to count links. Thank you
On-Page Optimization | | Rubix0 -
Too many links??
Hi mozzers I have a question that I need some feedback on please, I run 2 websites both e commerce retail sites and both doing well with SEO however, Our strongest site and parent site so to speak links to our sister site. Here is the outline. Site1 parent site is hosted on a unique URL and on a VPS. I have 384 links coming into this site from the other sister site. from various pages Site 2 the sister site, has 68,864 links coming in from site 1 as we have a link in the footer on site 1 to the home page of site 2. So far we have had no adverse affects from the Google zoo releases, however I am concerned that this many links will soon get penalized. Thoughts from anyone please? I am considering removing the footer link, thus removing 68,000 + incoming links. Looking for any advice here please. thanks Ryan
On-Page Optimization | | RyanC10 -
Site Wide Link
I have just run up the link explorer on my site and discovered that every page home page link points back with the text home - I assume this is bad in terms of SEO , my site name is ccie and I assumed that it put the site wide link of ccie to the entire site, however it seems to be the breadcrumb default of home which is doing it/. www.rogerperkin.co.uk/ccie Should I be looking to change this so my top keyword points back from each page to the home page. I am running wordpress and assumed the site name was the home link on all pages. Can anyone advise the best practice? Thanks
On-Page Optimization | | rogerp0070 -
Keyword in url, which way better?
Hello, is there a difference between urls for targeting keyword "brazil tourist visa" fastbrazilvisas.com/tourist or fastbrazilvisas.com/brazil-tourist-visa ? ran the report In-Page Optimization it tells "no keyword usage in url". is there an idea behind that? thanks
On-Page Optimization | | Kotkov0 -
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 -
100 links on one page
we're recommended 100 links or less on one page. is the 100 links including header and footer links?
On-Page Optimization | | jallenyang0