Duplicate Content with home.htm and domain
Started by proimpulse, Feb 18 2008 03:11 PM
8 replies to this topic
#1
Posted 18 February 2008 - 03:11 PM
We have a new Etomite site up and have found that Google has indexed the domain name and www.domain.com/home.htm which is not going to be good.
Can I use the .htaccess file to resolve this issue?
I have tried several things and feel I am close but if I get the home.htm to resolve to the domain name it messes up the interior pages of the site and they show up with the CSS not working.
Thanks in advance!
Can I use the .htaccess file to resolve this issue?
I have tried several things and feel I am close but if I get the home.htm to resolve to the domain name it messes up the interior pages of the site and they show up with the CSS not working.
Thanks in advance!
#2
Posted 19 February 2008 - 01:51 PM
Has nobody else run into this?
Thanks,
Anthony
Thanks,
Anthony
#3
Posted 19 February 2008 - 02:06 PM
All of the various attempts I have tried on my server have caused errors... I've even poked around in the parser to see if there might be a way to resolve the issue there but haven't had enough time to fully sort it out...
#4
Posted 19 February 2008 - 04:18 PM
I edit the menu snippet I'm using so that for the home page it just uses the domain name without the page alias.
For example, in my personal photography site I use this for the main menu snippet (based on MenuHori):
(This is stucturally the simplest of my sites, so has the easiest to read menu code!)
For example, in my personal photography site I use this for the main menu snippet (based on MenuHori):
$separator=" | ";
$children = $etomite->getActiveChildren($id); $menu = ""; $childrenCount = count($children);
if($children==false) {
return false;
}
for($x=0; $x<$childrenCount; $x++) {
if ($x)$menu.=$separator;
$title=$children[$x]['pagetitle'];
if ($children[$x]['id'] == $etomite->documentIdentifier ) $listitem = "<b>$title</b>";
else {
if ($children[$x]['id'] != 1) $listitem = "<a href='/[~".$children[$x]['id']."~]'>$title</a>";
else $listitem = "<a href='http://www.mikefinley.co.uk'>$title</a>";
}
$menu .= $listitem;
}
return $menu;
(This is stucturally the simplest of my sites, so has the easiest to read menu code!)
#5
Posted 19 February 2008 - 04:18 PM
I'd set up a permanent redirect to index.html, I hear that google takes note of this
#6
Posted 27 July 2008 - 05:24 PM
Did anyone ever come up with a fix for this? Google is still indexing our home.htm
#7
Posted 27 July 2008 - 07:43 PM
I realize that this may earn me the Stupid Answer of the Month award, but why not just create a robots.txt file like the following?
User-agent: *
Disallow: /home.htm
User-agent: *
Disallow: /home.htm
#8
Posted 27 July 2008 - 08:24 PM
I'll give it a shot and see if Google stops indexing it.
#9
Posted 27 July 2008 - 09:21 PM
gmschmitz, on Jul 27 2008, 02:24 PM, said:
I'll give it a shot and see if Google stops indexing it.
If the domain is part of your google account (under webmaster tools) you can expedite the removal of that url by going to tools/remove urls.
from that page:
"
To block a page or image from your site, do one of the following, and then submit your removal request:
- Make sure the content is no longer live on the web. Requests for the page or image you want to remove must return an HTTP 404 (not found) or 410 status code. Help

- Block the content using a meta noindex tag. Help

- Block the content using a robots.txt file. Help

Your content will then be removed from the index the next time Google crawls your site. If you need to expedite your content removal, make sure you have met one of the requirements listed above, and then select the New Removal Request button below to use this automated tool.
"
1 user(s) are reading this topic
0 members, 1 guests, 0 anonymous users










