Hey Guys, i have listen that 301 are useful in redirection. Is it true ?
Hey Guys, i have listen that 301 are useful in redirection. Is it true ?
You can use PHP or JavaScript or even HTML to do the redirection. PHP can do 301 redirection which is a moved permanently redirection: http://www.kavoir.com/2009/09/how-to...r-website.html
Read about some good hosts and how to make a good website.
Dear immediate,
Thank you so much for this post.
Your mentioned information is helpful for me also.
yes 301 is use for redirect.
For permanent redirect use 301 Or for temporary basis 302 are best options.
This is simple code to add in the .htaccess file in root directory of your CPanel
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteCond %{HTTP_HOST} ^site1.com$ [OR]
RewriteCond %{HTTP_HOST} ^www.site1.com$
RewriteRule (.*)$ http://www.site2.com/$1 [R=301,L]
</IfModule>
Simply change your site1 to the site you want to redirect. And site2 with the site where you want to redirect.
Yes, it is. 301 redirect is key to maintaining a website's domain authority and search rankings when the site's URL is changed for any reason. It easily sends visitors and search engines to a different URL than the one they originally entered into their browser or selected from a search engine result. To perform 301 redirect with Htaccess editor is the easier way for beignners.
There are 2 types of redirection codes 301 and 302.
301 is used for permanent redirection means you want to redirect any website/webpage to another website/webpage permanently.
302 code is used if you want to redirect your webpage/website users to another website/webpage temporarily for short time.
It depends upon your requirement and use can use any code.
301 redirection is most famous in SEO as if we redirect any webpage with 301 redirection then it will pass the webpage authority benefits/link juice to new page.
use some online redirection tool to generate code
Dear member,
Yes you can redirect your old domain to new domain through 301 permanent redirect .htaccess file
Thanks for share this knowledge.
|
Bookmarks