Please help me with redirection code.i want html code for redirection. E.g i wanna redirect xyz.com to mysite.com Please tell me the exact code for that..thanks.
Inside of the head tag on xyz.com insert the following code. <meta HTTP-EQUIV="REFRESH" content="0; url=http://mysite.com/"> Code (markup):
Yes, that will work. But if your hosting supports PHP then it will be far better to use: <?php header( 'Location: http://www.xyz.com' ) ; ?> Code (markup):
The meta refresh method is not good from SEO point of view, if your site is hosted on apache,linux you can use .htaccess to redirect the old page with new page. Thanks!
He stated he wanted a way to do it in HTML. I know it is not the preferred method, but that is the only HTML way I know of. I would recommend php location.