How to Redirect a Domain Name 
Tip Sheet Credibility: 5
created by bhartzer
Tip Sheet
| Set up a 301 Permanent Redirect to redirect a domain name from one to another; meta refresh and 302 redirects are not recommended. Tip Credibility: 4 (Best Tip!) |
| Most domain names are hosted on a Unix type of server, so you would typically edit the .htaccess file to set up the 301 permanent redirect. Tip Credibility: 4 |
| Put this rule into the apache config file, that handles the virtualhost.
<IfModule mod_rewrite.>
RewriteEngine On
RewriteCond %{HTTP_HOST} ^www.old.com$
RewriteRule ^(.+)$ www.new.com/$1 [R=301,QSA,L]
</IfModule> Tip Credibility: 4 |
What do you know about that?
|
Important Disclaimer: Answers and comments provided on TipDrop.com are general information, and are not intended to substitute for informed professional medical, psychiatric, psychological, tax, legal, investment, accounting, or other professional advice. TipDrop.com does not endorse, and expressly disclaims liability for any product, manufacturer, distributor, service or service provider mentioned or any opinion expressed in answers or comments.

Report Tip Sheet
