hi, im changing my domain from store.domain.com to new one www.domain.com, the thing is: when google searches, it will print bad urls before new indexing, but i have an idea, after domain changin i can setup a redirecting pages javascrpt script in the 301 redirecting page, such as:
[PSEUDO-code]
if the searched page is:
var current_domain: store.domain.com
var current_page: GET_URL(); (i.e. page.html)
newdomain: www.domain.com
then redirect to www.domain.com/page.html
new location = newdomain+page
[/PSEUDO-code]
then each error page will be redirected to the proper new domain page until google updates its index database
what do you think is this doable?
thanks