Hi ,
i was in an argue with one of my colleagues on redirection i have been using the .htaccess for redirecting urls to new domain urls , now the question is that if i have changed my domain to a new domain lets say from abc.com to xyz.com and i have the same name of the pages and everything , i want that my old urls lets say
abc.com/profile/omer
should be redirected to
xyz.com/profile/omer
what my colleague recommends is to use
and find the domain name (abc.com)in the url and replace it with the new domain (xyz.com) and include it in the config file which is already included in all pages , and not to use the .htacess redirect as we have to type in all the urls into the .htaccess file , seems to be short though and quick , but i always go for the safest option , what do anyone of you recommend doing , one more thing the way strstr() is used that means that all the pages need to exist on the old site (abc.com) as well as new site (xyz.com) would that cause any difference to the indexing on google? or would the similar text on both the domains create the problem for the bots? , any SEO regarding problem using the strstr() method?
Reagrds,
Omer Aslam