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
-
Website is not getting indexed
Hi,
Content Development | | Aman0022
Hope you all are doing great!
I have created a dog blog a few weeks back which talks about all things about dogs (http://pawspulse.com/). I am publishing couple of articles everyday which are more than 5k words long with proper keyword research but still Google is not indexing my content. My content is systematically categorized in proper categories related to dog guides, nutrition, accessories, dog breeds etc.
Can anyone help me how to get the website index faster fully. Any help will be much appreciated. Thanks0 -
I started a Wordpress blog, google indexed it...
How long before I can see those links show up in SEO Moz for my website? What elements is SEO Moz looking for before they add the wordpress site to my linking domains report? Regards, Jeff
Content Development | | biggieshaws0 -
Crawl error vs RSS feed content
Hi, I have a BuddyPress Multisite with sites dedicated to specific RSS feeds. I did this to pull in the content for my users. But they generate a 1000s of SEMOZ errors/warnings for dup content, dup titles, missing metatags. etc. So does keeping the content help my site SEO less than the errors? The content is not under my control so I have no way to relate it to my keywords. Any opinions? I can recreate these RSS sites, so I will probably delete them to see what happens. Larry
Content Development | | tishimself0 -
Onsite Blogging Vs Guest Blogging
Hey all! I have a limited amount of time allocated to writing instructional blog posts for my company. When I complete an article I can do whatever I want with it: pitch it as a guest post on an industry blog, or post it on my company's onsite blog. I know there's not a magical solution regarding the percentage of time one should devote to guest blogging v. focusing on the company blog, but I figured I'd throw the conundrum out to the Mozzers anyway. In your opinion, how many of your writing resources should be devoted to guest posts, and how many should be devoted to maintaining the onsite blog? What if our onsite blog isn't currently receiving a lot of traffic? Thanks! Meg
Content Development | | ClarityVentures1 -
Posts vs Pages and Rankings Differ Greatly
I use wordpress for most of my sites and generally have a post 'news' section. What I've noticed is that just about every time a post will always rank much higher and much faster than a 'page'. As long as I don't let it get buried in the news archives it continues to rank well, better than if I were to create a 'page'. Is there any sort of reason this might occur? I'd like to be able to just create 'pages' but at this point in time it makes no sense.
Content Development | | GYMSN0 -
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 -
Tweetmeme vs Twitter Button
So I am curious as to what benefits to each of these plugins would outweigh one or the other. I began using the Tweetmeme plugin for our main blog because it offered the option to use our own bit.ly pro short code. +1 for branding. Plus I think there is some value in having your site and link on tweetmeme, but I overheard that Twitter's own Tweet Button for blogs offers better SEO than the Tweetmeme for blogs. I am out of my area of expertise. Any thoughts?
Content Development | | Thos0030 -
Index pdf files but redirecto to site
Hi, One of our clients has tons of PDFs (manuals, etc.) and frequently gets good rankings for the direct PDF link. While we're happy about the PDFs attracting users' attention, we'd like to redirect them to the site where the original PDF link is published and avoid that people open the pdf directly. In short, we'd like to index the PDFs, but show to users the pdf link within a site - how should we proceed to do that? Thanks, GM
Content Development | | gmellak0