Index.html vs. default.html
-
Hi,
I have a website that is about 7 years old. I had been using index.html as the home page. When I redesigned my site about 3 months ago I changed it to default.html. The old index.html page was still on my server. I just realized my mistake. All of my links to the home page lead to the new default.html.
However, people are still landing on the old index.html. I have change the old index.html to the new design but that means i have 2 "home" pages out there. Should i delete one? Should I leave them both there but use the canonical tag for one so it is not considered duplicate content?
What is best for my rankings?
-
Thank you.
If that was my site, I would redirect your /index.html and /default.html pages to http://www.normas9000.com/.
I would then update your canonical as well. Lastly, there is no reason to have both the default and index.html pages so I would remove one of them.
-
Thanks for your help, http://www.normas9000.com
-
Can you share your domain name? It would make this a bit easier with specific examples.
The question I have for you is, when I type in www.yourdomain.com, what is the URL that appears in the browser? Is that URL www.yourdomain.com? or www.yourdomain.com/index.html? Also, take a look and see is you have any ReWrite's happening in your htaccess file.
In short, I recommend you 301 www.yourdomain.com/default.html to www.yourdomain.com IF you have any links (internal or external) to the default.html file. You would only make this redirect if your home page actually is www.yourdomain.com. If it is actually www.yourdomain.com/index.html then you can use that instead.
It gets confusing speaking in general terms and trying to address all the possibilities.
-
I agree with Ryan. 301-redirects to mydomain.com would be the best solution since index.html is the default file on your web server and visitors prefer remembering mydomain.com in stead of mydomain.com/default.html. Besides, unless "default" is a keyword, "default.html" doesn't have any seo value. In fact, it's recommended to use folders in stead of file names.
You can change the default page in your web server's apache configuration however.
-
If I type in mydomain.com, it brings me to the index.html version of my home page. So, I can 301 the default.html version to go to index.html and then make all my internal links go to index.html
Am I understanding you correctly? Thanks!
-
I would recommend friendly URLs which avoids this entire issue.
More specifically, I am suggesting your home page URL be something like www.mydomain.com, not www.mydomain.com/index.html nor www.mydomain.com/default.html
Whatever you decide, the best solution would be to 301 your old home page(s) to your new home page. You would also want to update any internal site links to your current home page. If you have control or influence to update any external links, do that as well.
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
-
Google Index Issue
2 months ago, I registered a domain named www.nextheadphone.com I had a plan to learn SEO and create a affiliate blog site. In my website I had 3 types of content. Informative Articles Headphone Review articles Product Comparision Review articles Problem is, Google does not index my informative articles. I dont know the reasons. https://www.nextheadphone.com/benefits-of-noise-cancelling-headphones/
Content Development | | NextHeadphone
https://www.nextheadphone.com/noise-cancelling-headphones-protect-hearing/ Is there anyone who can take a look and find the issues why google is not indexing my articles? I will be waiting for your reply0 -
Global Blogs vs Regionalised blogs
Im in the process of launching a blog. The blog will be for global audience. If I wanted to target a more specific region in the future example UK would it be advisable to launch a separate blog for the UK market or how could I regionalise the posts if I kept blogging on the Global blog.
Content Development | | Clickatell20 -
One story stands out for not getting indexed?
We have all our stories published today ( 20-Jun-2013 ) got indexed by google except this ( http://coed.com/2013/06/20/heres-a-video-of-kate-upton-topless-on-a-horse/ ). Do anyone out there have any clue about that? Thanks in advance
Content Development | | COEDMediaGroup0 -
Smaller Index
Hi guys, We are a price comparison website with thousands of webpages. Most of them are product webpages with not so good quality content. Only price information and product image, no product details nor costumers reviews. We are planing to focus on less product categories by adding reviews, details, better images etc... and I would like to know if I should maintain the other "not-so-good" products in other categories or if I should remove it from index to leverage domain average content quality. Our index size is 200k pages and we are planning to focus on 10k pages max. Thanks for your help.
Content Development | | Kuantokusta0 -
Starting a Blog. New Domain vs integrated in a shop domain?
Hi everybody, We are going to start a blog for posting about topics related to our online shop and its products. Our question is... what is better in terms of SEO.... Creating it in a new domain and linking to our online store when neccessary, or integrating it in our actual online shop and take advantage of our visitors? Thank you very much in advance! Best Regards
Content Development | | fogar0 -
Google Blogger Vs. Sub Domain Blog - Authority building.
We are looking into offering blogs for our customers on their current sites that we have built & host for them. My developers have given me 2 options. 1. Sub domain with a hosted blog. 2. A Google Blogger blog with our customers sub-domain pointed to it. In my opinion I feel that a blog hosted on the sub domain is a better option as it is more authority then a Google Blogger blog. What does everyone think? Having a blog hosted on the subdomain would help with authority building vs. a Google Blogger site? Thanks for any help!
Content Development | | DCochrane0 -
Sub directory vs sub domain for company blog
My company's blog is currently a sub directory - www.site/blog.com but for technical ease we are considering changing it to a sub domain - www.blog.site.com. What are the SEO ramifications of each? Thank you! Best, Sara
Content Development | | theLotter0 -
Separating words in URLS using hyphens vs. "no separator"
Does it matter if I use hyphens in URL versus. "no separation". Ex www.mysite.com/someproducts or
Content Development | | clolsen
www.mysite.com/SomeProducts vs.
www.mysite.com/some-products The last is perhaps more readable by humans, but does it make any SEO difference using one or the other?1