I've changed my URL schema. How do I tell Google to index the new schema and forget the old one?
- by growse
I had a site where the urls were constructed like this
/index.php/Topic
/index.php/AnotherTopic
These were indexed in google, and search results returned that pointed to these.
However, I've recently replatformed that site, and reconfigured it so the above urls would be:
/index.php?title=Topic
/index.php?title=AnotherTopic
The original urls are returning 404s. The site is linking to the correct URL schema internally, but Google is retaining the original schema in its search results. I've updated and resubmitted the sitemap which only contains the new schema. Also, Google's webmasters tool is going slightly bananas at the fact there's now a spike in 404 errors in its crawl results.
What would be the best approach to get Google to 'forget' about the old schema, and instead index the new schema? Should I try blocking /index.php/ in robots.txt? Should I be returning 301 codes instead of 404 for the original urls?