Moz Q&A is closed.
After more than 13 years, and tens of thousands of questions, Moz Q&A closed on 12th December 2024. Whilst we’re not completely removing the content - many posts will still be possible to view - we have locked both new posts and new replies. More details here.
Linking to root domain or index page
-
While link building, should I link to index page of my website i.e www.mydomainname.com/index.html or should I link to root domain i.e www.mydomainname,com
Also I see duplicate title error for index page and root domain in error statistic. How can I get rid of this.
-
Hi Arti,
Generally, you want to link to your root domain. Many common website templates link to home as /index.html, but that really hasn't been necessary for years.
The easiest way to fix this would be to add a canonical tag in your homepage, which is the /index.html file. It would go in the section and look like this:
After you add this, when you look at your source code for your homepage, you should see this tag in there from whatever address you reached the page from.
There's a lot of information on duplicate content out there, and a lot of different ways to fix the same problem. Here's a good overview of the subject:
http://www.seomoz.org/blog/duplicate-content-in-a-post-panda-world
Best of luck with your SEO.
-
To me, that's not what your 404 page is for. I wouldn't recommend doing it. What happens if they typo something, or hit a bad link some other way? There's no message to tell them what happened and it creates a confusing user experience.
Better, in my opinion, to redirect the file individually
Arti, there's a good article on SEOmoz about redirects. Down the bottom, there are some how-to guides on how to do things like 301's. Just be careful of infinite loops if you're using apache.
http://www.seomoz.org/blog/url-rewrites-and-301-redirects-how-does-it-all-work
-
Hi Anthony, Thanks for your reply. Does that mean that I should actually remove index.html from my website. Also please help me for 301 redirect. Rgds Arti
-
If you have wordpress you can add
<code>php header("HTTP/1.1 301 Moved Permanently"); header("Location: ".get_bloginfo('url')); exit(); ?></code>
<code>to your 404 page.</code>
-
Hi Arti,
You'll just need to create a 301 redirect from www.yoursite.com/index.html to www. yoursite.com. This will permanently eliminate the /index.html version (which is a duplicate page) and fix the duplicate content error.
After that, build links to www.yoursite.com.
Hope this help. If you need more info on how to do the 301 redirect just let me know.
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
-
linking domain issues
Hello guys. I am having issues with my linking domains. These domains are made outside of my website. I have tried to disavow these links but not able to do it. These are mostly from google redirects links. Here is the```
Link Building | | Rom1988z
code_text0 -
When conducting a link building strategy does it matter the country the link is from?
We are a UK business and if we have links mostly from US based blogs and websites does this penalise us. The links are from relevant websites and topics. Should we be focusing on .co.uk sites
Link Building | | Caffeine_Marketing1 -
Backlinks vs External Links vs Referral Links vs Outbound links
Hello all, I was just wondering if you could explain the difference between all the links above? I'm confused as they all seem to be the same or similar and I would just like to clearly know what distinguishes them from eachother. Thanks for your help, Jayne
Link Building | | NCOREGSEO0 -
Should my backlinks point to my home page or to internal article pages?
Hi, I run a fitness blog and I get the majority of my backlinks through guest posts that I write on high quality sites. Sometimes they allow me to put a backlink within the article, and I'll link it to a relevant article of mine. However, in the "author bio" section my backlink anchor text is usually just my brand name. I was wondering if this backlink should point towards my home page or is it more beneficial to point it towards an important article of mine? Thanks
Link Building | | jeremyethier0 -
Internal Linking - Post links vs Side Bar Links behaving differently
Hi, I have a question regarding the internal linking behavior. My website is www.hindimeaning.com which is approx 3 years old. I have approx 450 posts. Now i have a widget on right sidebar "Popular posts". A widget below my posts "Related Posts". And a simple html CSS menu above the posts (I removed menu around 6 month before so currently it will not show.) I crawled my site with moz crawler (same are the result from google crawler as well) and it shows menus links as internal links. While sidebar widget "Popular posts" and "Related Posts" are not showing as internal links. If we talk theoretically what i learn till now is "every link on a page behaves as internal link". Then why the widget links are not showing as internal links. Thanks, Mahesh Kumar
Link Building | | chaudhary04890 -
It is ok to link together multiple domains on the same ip?
I have multiple domains (more than 50) in the same niche. All domains are on the same ip. It is ok to link them together, or to create a piramid link between them?
Link Building | | maldiniii0 -
Do links from my own subdomain to my main domain carry any value?
I currently have a Wordpress blog set up on a subdomain i.e blog@ etc. I wanted to know whether the links from the blog to my main site carry any value.
Link Building | | Store210 -
Building Links to Exact Match Domains
What are the pros and cons having exact match domain and how can you create a brand name and build backlinks? Say we have a domain personalizedbirthdaygifts.com We are quite stuck with what anchor text we need to use and how do we vary it? I've heard that we have to stay away from using commercial keywords as anchor text heavily. We have to also use our brand name. And here we get stuck as we don't have a brand name. In this case Our brand name should be personalized birthday gifts but this is also commercial keyword. I have seen before similar websites droped from ranking because they have commercial keywords in their domain and most of their backlink anchor texts are commercial. If I had a website called twentyfive.com selling birthday gifts it would be a lot easier. But when you have a website personalizedbirthdaygifts.com and trying to rank for personalized birthday gifts and birthday gifts it's tough. OR isn't it? I hope I explained it well and didn't confuse anybody... Thanks
Link Building | | Jvalops0