Hi, I want to move my old domain to new one domain by 301 redirection method because i dont want to lose my SEO ranking. But i want to show a message for few second before redirect to new domain that "oldwebsite.com is redirect permanently to newonedomain.com". Is it possible? I search online but getting ideas to redirect permanently by htaccess directly without message. So if any one have idea to redirect entire website to new one with message then please share with me. Hope for quick response.
Well, you can do it through html redirect. <head> <!-- HTML meta refresh URL redirection --> <meta http-equiv="refresh" content="0; url=http://www.mydomain.com/new-page.html"> </head> Thanks.
I think this code will help to redirect single page to another and i have to put this code to each page of website. I am looking to redirect complete website to new one. Options +FollowSymLinks RewriteEngine On RewriteCond %{HTTP_HOST} ^domain.com$ [NC] RewriteRule ^(.*)$ http://www.example.com/$1 [R=301,L] Above code will redirect but what i am looking for is message for few seconds like "This domain move permanently to newdomain.com" and then redirect to old one. Is it possible ?
According to me you cannot show a message for few seconds with 301 redirect. 301 redirects are instant and permanent. If you want to show message than you can't do 301 redirect. For the sake of your SEO, you have to do 301 redirect. Your audience will also understand that you move to a new site.
Then you can do one thing. Redirect all your old pages to one page on that old domain through .htaccess (olddomain.com/redirect.html) and on that redirect.html page you can put the above code which i provided to redirect to new page.
If i will redirect complete website then how can i use single inner page as landing page for message as you are suggesting .... I think it will give us error. There should be another way to save our SEO ranking also after redirection.
To save the SEO ranking, the only best way is to do it through .htaccess 301 redirect as recommended by @iwebsocial. Thanks.
.htaccess 301 redirect is the best waymy , i did it to my website and i didnt 'lose trafic. On the contrary I gained positions.