You are here: Re: how to do this « All PHP « IT news, forums, messages
Re: how to do this

Posted by Tedd on 10/11/06 18:43

On 11 Oct 2006 09:57:12 -0700, Kentor wrote...
>
>Hello,
>how can I tell search engines when pages have been removed....
>Lets say an apartment has been listed and appears this way in the url:
>www.mysite.com/details.php?post=123 ..... once the apartment has been
>rented and the owner removes his listing this page will appear but will
>say that the postid does not exist anymore... but if there are a few
>apartments that have been removed and search engines crawl all of them
>they will see it as duplicate content which will give me a penalty...
>how should this be taken care of? Would a 301 redirect to the index
>page be the best solution or maybe create a personalized error document
>not found page for my website and tell search engines about it and that
>would have a link to the home page? or... ? :)
>


Similar to what Steve said, you're better off managing the message than trying
to control what the search engines are doing. Since you'd have a $_GET['post']
variable available when the page is accessed, you can add a condition to your
PHP to print a specific message or maybe redirect them to another page/message.

Tedd

--
Help a Community by Participating in Ours
We donate your subscription fees to the charity you choose
100% of your first month, 10% thereafter.
http://newsguy.com/charity.asp

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация