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
-
If my blog is on Wordpress, and I've installed the AMP plug-in, what do I need to do to get Google to start indexing all my posts as AMP pages?
If I add /amp to the end of any of my posts, I can see that the plug-in is working. It's been months since I installed it, though, and Google hasn't indexed any of the AMP pages. Am I missing a step?
Content Development | | DeanRamadan0 -
New sister site VS site redesign and dangers of SEO dilution??
Hi I’ve got a site that is ranking #2 in my area for my chosen keyword but the site is in need of an expansion and overhaul its only one page at the moment and to rank for more keywords its need to be expanded. Or another option is I do own another domain and I was thinking of maybe instead of overhauling the new site launching that as a sister company aimed more at the corporate market, as my first site is a bit more alternative in domain name and content. The thing is i'm not sure how this will affect my SEO they will be on the same CBlock and be offering similar services.
Content Development | | genkee0 -
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 -
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 -
Rel=publisher vs G+ badge without
I've read that I should only have a rel="publisher" once on my site (on the home page) in a link that points back to the corporate G+ page. Cool. But, if I want to have a link to the corporate G+ page in the footer of every other page on the site then I assume it's okay as long as I omit the rel="publisher" part, correct? Second question: For blog postings, I assume it's good to include a rel="author" tag in the link to the author's G+ page, right? Even though there is a link to the corporate G+ page in the footer of the same page.
Content Development | | scanlin0 -
Show all VS show excerpt in a blog post
I saw that you recently changed your blog from "show all" to "show an excerpt" and then "read more", could you explain me the reason? It´s not supossed to be better for the blog readers to see the full posts in the homepage?
Content Development | | diegodjm0 -
Our blog is indexed by "google web" but does not show up in "google blogs". Why not and how can I fix this?
We have a pretty simple blog http://www.aviawest.com/blog I've noticed our articles arn't showing up in Google blogs on "web", we've submitted to http://blogsearch.google.com/ping a month ago. Anyone have some insight here?
Content Development | | Aviawest0 -
Should I Have No Index, No Follow On Blog Category & Tag Pages?
At some point in the past I read or was told that No Index, No Follow tags on category and tag pages were a good thing on a standard WordPress blog in order to prevent duplicate content issues. Is this still true or was it ever true?
Content Development | | eTundra0