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
-
Should I change my website urls?
We're translating our website in a few languages (FR / DE / JP) using subdirectories. So our website will have the following urls www.brand.com/en
On-Page Optimization | | dcalexandra
www.brand.com/fr
www.brand.com/de
www.brand.com/jp I would like to change the url structure of a few pages from www.brand.com/section/feature-name to www.brand.com/feature-name Is it a good idea to do this now since we're adding the subfolders and these are anyway new urls in google's eyes?0 -
Need Professional Help with Site Structure, Page Authority, and Internal Linking
We are a 10 year + small (1000 pages) niche ecommerce site (Magento) that has recently lost rankings to a competitor. We out perform them in every metric so I do not understand them leap frogging us to the top spot. This has forced me to look at my site structure, page authority (rank), and internal linking. After reviewing a moz crawl issues report, here are some of my observations: Root domain has a PA of 40 Top 3 $ Category pages have a PA of 22, 18, 18 Multiple meaningless blog posts and other category/product pages have PA’s of 30+ Here is a screenshot of the crawl report with internal links, links, etc showing. I need some help - thoughts, suggestions, next steps in analysis?
On-Page Optimization | | SammyT0 -
Site Wide Links
Howdy Moz! So our agency has been around for long enough to have a few sites we've built that have our credit in their footer resulting in a site wide link. Mostly just our name. We've heard that Google does not particularly like site wide links, should we go through and remove some of these old links?
On-Page Optimization | | wearehappymedia0 -
Too Many On-Page Links
Ok so I am very new to MOZ, and we have just set up our PRO account and campaign. Â When we got our crawl results we had 4 pages with "too many on-page links". Â All of these pages correspond with our blog, which is a wordpress hosted blog that is integrated into our site. Our site is www.moxicopy.com and the blog is www.moxicopy.com/blog I am confused on how we have over 100 on page links on these pages, as we have very few links on our blog.
On-Page Optimization | | Moxicopy.com0 -
Related Items Links
Hi, If an item page has 'related items' links and 'you may also like' links - and both those are essentially the same links, doesn't it make sense to only have one set?
On-Page Optimization | | Freelancer130 -
To Many Links On Page
I'm having a problem on a crawl warning for our main site. The warning is that every one of my pages has to many links, a little over 1,000 on almost all of them. I think this is because our category list on our left hand sidebar has so many categories, and that sidebar appears on every last one of our pages even all the way into our products. Can anyone take a look and tell me if this is the reason why and what I could possibly do about this? Thanks in advance! www.Ocelco.com
On-Page Optimization | | Mike.Bean0 -
Internal Links & Title Tags, Which Page Benifits?
The best way I can explain why question is with an example. Lets say I have a parent parent page that is focusing on a broad keyword.
On-Page Optimization | | donford
I also have a sub-page which is focused more on long-tail keyword variations. When I make an internal link and give it a title tag, should I give it the long-tail keyword for the juice, or should I use the broad keyword for the parent page's relevancy? Thanks for any help, advise or pointers.0 -
Building content pages, redirecting and linking
Previously the company had created some .HTML content pages around top shoe styles and top manufactures. One or two of these pages used to rank but have been neglected over the page 18 months. I want to build out new content round our top styles / top manufactures and I am wondering if I should use the existing HTML pages or create new pages that use our content management system. The .HTML pages can contain keywords in the URL, using our content management system, all URL’s are www.site.com/content/home/contentid=1234abcd. If we use the .HTML pages all content is managed manually. If we build out 6 to 10 pages, this can become a resource issue and may result in a bad experience for the website visitor. From an SEO perspective, does the benefit of having the keywords in the URL outweigh the manual management hassles? And if not, should we 301 all the HTML pages to the new content pages? And from a linking standpoint, I want these content pages to point to the new version of the top style. From a navigation standpoint, we also want to provide access to all styles from the manufacture. Should we nofollow the links to all styles?
On-Page Optimization | | seorunner0