Jump to content


Duplicate Content with home.htm and domain


  • You cannot reply to this topic
8 replies to this topic

#1 proimpulse

    Etomite Forum Fan

  • Member
  • Pip
  • 79 posts

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!

#2 proimpulse

    Etomite Forum Fan

  • Member
  • Pip
  • 79 posts

Posted 19 February 2008 - 01:51 PM

Has nobody else run into this?

Thanks,
Anthony

#3 Ralph

    Loves Etomite Forums!

  • Admin
  • 6,524 posts
  • Gender:Male

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 mikef

    Loves Etomite Forums!

  • Member
  • PipPipPipPip
  • 1,551 posts

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):

$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 cathode

    Loves Etomite Forums!

  • Staff
  • 648 posts
  • Gender:Male

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 gmschmitz

    Etomite Forum Newbie

  • Member
  • 2 posts

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 jon

    Etomite Forum Newbie

  • Member
  • 39 posts

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

#8 gmschmitz

    Etomite Forum Newbie

  • Member
  • 2 posts

Posted 27 July 2008 - 08:24 PM

I'll give it a shot and see if Google stops indexing it.

#9 darren

    Likes Etomite Forums!

  • Member
  • PipPip
  • 251 posts

Posted 27 July 2008 - 09:21 PM

View Postgmschmitz, 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 Posted Image
  • Block the content using a meta noindex tag. Help Posted Image
  • Block the content using a robots.txt file. Help Posted Image
To remove your entire site, or a complete directory, use a robots.txt file. Help Posted Image

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