hii i need to redirect one of my site to another. plz tell me the best method with code, i need to do for few days as my sever is down. help me plz
Options +FollowSymlinks RewriteEngine on rewritecond %{http_host} ^domain.com [nc] rewriterule ^(.*)$ http://www.domain.com/$1 [r=301,nc] Code (markup): replace the domain.com and www.domain.com with the url you are redirecting to and place it in your .htaccess file
<% response.setStatus(301); response.setHeader( "Location", "http://www.new-url.com/" ); response.setHeader( "Connection", "close" ); %> Code (markup): sure this is the java way of doing it
NOt 301 Because 301 means redirecting forever you should make a 404 page tell u visit what happened and tell them when recover