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
-
How many internal links should a (sub-)page maximal have?
What would the effect of having too much be? Does google stop crawling after a number and punish more internal links?
On-Page Optimization | | brainfruit0 -
Site Structure. Which is better?
Ideally, which model is better for site structure: 1. Homepage -> Categories -> Individual Pages (See example here http://www.wordtracker.com/attachments/bead-site-structure.gif) OR 2. Homepage -> Categories -> Sub-categories -> Indicidual Pages In the 2nd model, are the individual pages too far away from the homepage?
On-Page Optimization | | brianflannery0 -
Redirect www.domain to domain
How do I redirect www.entrepreneurhandbook.co.uk to entrepreneurhandbook.co.uk The latter is an existing site. Thanks James
On-Page Optimization | | entrepreneurhandbook1 -
Redirecting deleted posts 301 vs 302
There is a category on WP where job ads are posted. when a post got deleted I would like to pass 404 error page and redirect all those deleted posts to specific category. I found WP plugin Auto Redirect 404 in 301 for Trashed Posts which does redirect deleted post to specific URL. But posts which are in the trash (not permanently deleted) will get 302 redirects. Those deleted permanently will get 301 redirects. Should I try editing this plugin or find another why? Maybe there is similar way with Redirection plugin? Â
On-Page Optimization | | OVJ0 -
Too Many On-Page Links
Hello. Â So, my SEO team has worked very hard to finally resolve RogerBot/GoogleBot specific Crawl Errors either manually or programmatically can be fixed for our Budget Blinds USA Pro Campaign. Â We've done a good job even if a lot of it came from Robots.txt file entries as this was the most efficient way our client chose to do it. Â Good news is most of it is CMS configuration and not bad site architecture. That being said our next big volume of Crawl Errors is "Too Many On-Page Links". Our Moz DomainRank is 61. Â Our client, on this new version of the website, added a large nav-based footer which has duplicate links from the Header Main Navigation. I believe our solution is to put in No-Follow Metatags at the Footer Link Level, so we don't zap Page Authority by over-dividing as you recommend. Is this the best way to resolve this? Â Is there any risk in this? Â Or is a 61 DomainRank high enough for RogerBot and GoogleBot to crawl these anyway? Please advise,
On-Page Optimization | | Aviatech0 -
Do we have too many links in our footer?
Hi guys, we have 41 links on our holiday(vacation) rental website, this seems too many when looking at best practice. 24 of these are links to community pages while 8 link to activities pages. The community and activity pages are also accessible from links on the top menu so they are not strictly necessary but do get 10% of site clickthroughs according to Google in-page analytics. I therefore do not want to remove the links if there is no good evidence that google will penalize us for this. What do you think would be best for our site? Thanks, John Tulley. footer.jpg
On-Page Optimization | | JohnTulley0 -
Trying to maintain rank while switching back & forth from sitewide 301 to 302 redirects?
My company's website has earned industry "authority" over the years and ranks well for a number of keywords. For reasons not worth explaining, we've moved the entire site (all pages) to be secured (https from http). When we launch our completely new website in 5 months from now, we will launch it as "http:" For the next 5 months, we're stuck with using site-wide "https". Is it better to 301 or 302 all pages (from http -> https), with the intent to move back to 301 in 5 months from now? Obviously, this situation is not ideal, but we'd like to preserve as much authority/presence as possible. What should we do and why? Any input would be greatly appreciated!
On-Page Optimization | | WhiteCap0