Forum Moderators: phranque
If the pages are legitimate pages of yours that have been defaced, you should not use this method, because it would result in them being deindexed.
404 Not Found isn't as good as 410. Search engines may keep trying to crawl the pages for a long time, wondering whether they might come back online. 410 means the removal is intentional and you're not going to put them back.
[edited by: phranque at 5:32 pm (utc) on Dec. 17, 2009]
[edit reason] exemplified url [/edit]
Also i currently i have some commands in .htaccess file would i place new code for 410 right under it. Below is what i currently have:
Options +FollowSymLinks
RewriteEngine on
RewriteCond %{HTTP_HOST} ^example\.com [NC]
RewriteRule ^(.*)$ http://www.example.com/$1 [L,R=301]
Thanks
[edited by: phranque at 7:24 am (utc) on Dec. 18, 2009]
[edit reason] exemplified domains [/edit]
although untested, something like this should work:
RewriteRule ^pictures/conf/ - [G]
you probably want to return that 410 before you canonicalize your domain...