Forum Moderators: open
Similarly, I also have two servers www and www2. The user is on my www server for some time, and for some processing I sent the user to www2 server with something like this -> www2.widgets.com/somepage.aspx.
In my case, I don't want to maintain same index page on both servers (keeping them in synch is a problem), so my default.aspx on www2 server redirects the user to www server's index page (in index.php). So the www2 server should only be used when www server sends a user to that server on a specific page. If the user removes the /somepage.aspx and tries to view the index page on www2 server, that user is redirected to first server.
PROBLEM:-> Since these two servers are hosted at two different hosts, (one php and one aspx), the www2.widgets.com's original DNS entry at host2 is www.widgets.NET. Somehow google found that server (I have no links to .NET server) and crawled it. When it crawled the www2.widgets.com or www.widgets.net server, it actually crawled my main page due to response.redirect. Now that page is listed in google index as www.widgets.net and my main page www.widgets.com is listed as Supplimental Result.
Can someone PLEASE suggest what should be done to rectify this?
Best Regards
SDani
The solution posted is ->
<%
Response.Status = "301 Moved Permanently"
Response.addheader "Location", "http://www.newdomain.com/newurl/"
Response.End
%>
Is that the correct way of achieving what I need to achieve? I am already using Response.redirect (same as response.addheader, so if this is the way, all I need to do is add Response.Status = 301 Moved Permanently, just before my response.redirect.
Can someone please confirm?