I've just completely renewed my website, and all old pages which were indexed by google and other SE's don't exist anymore. How do i tell the spiders all pages have been removed?
Use a 301 Permanently Moved redirect. Redirect each old URL to the new URL whose content most closely resembles the content found at the old URL. Google will then give the new URL credit for all inbound links (and link text) for the old URL.
Yes use a 301 redirect in htaccess. If you have a similar page redirect it to that, otherwise just send it to the homepage.
Yep, 301 is the best method. If those old pages have any backlinks pointing to then whatsoever, you may want to set up multiple 301 redirects to preserve the link value and pass that to the page or pages that's new - like Canonical said above.
Thanks, i've 301 redirected all the removed pages. One more question When i generate a sitemap, it shows two URLS pointing to the homepage mydomain.com/ and mydomain.com/index.php So google sees / == /index.php , will that give any duplication trouble? How do i create a rule in htaccess to tell the spiders to ignore /index.php and just follow / ?
Hmm i think i still need some help with the 301 redirect. All the old pages have been removed, and I want all of them (about 300 indexed by google) 301 redirected to index.html Manually adding each page redirect is too much work. I found this piece of code: RewriteRule /.* mydomain.com/ [R=301,L] Will that work? Or will that also affect the new site structure? Will all pages, including the new ones, point to index.html? I just need all the old pages redirected to index.html i'm such a noob