redirect add on domain

RewriteEngine on
#
# if non-blank host header
RewriteCond %{HTTP_HOST} .
# and requested domain is NOT <a href="http://www.newdomain.com
RewriteCond" title="www.newdomain.com
RewriteCond">www.newdomain.com
RewriteCond</a> %{HTTP_HOST} !^www\.newdomain\.com
# redirect to requested page on <a href="http://www.newdoamin.com
RewriteRule" title="www.newdoamin.com
RewriteRule">www.newdoamin.com
RewriteRule</a> (.*) http://www.newdomain.com/$1 [R=301,L]

Post new comment

The content of this field is kept private and will not be shown publicly.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Allowed HTML tags: <a> <b> <address> <blockquote> <br> <caption> <center> <code> <dd> <del> <div> <dl> <dt> <em> <font> <h2> <h3> <h4> <h5> <h6> <hr> <i> <img> <li> <ol> <p> <pre> <span> <strong> <sub> <sup> <table> <tbody> <td> <tfoot> <th> <thead> <tr> <u> <ul> <tr>
  • You can enable syntax highlighting of source code with the following tags: <code>, <blockcode>. Beside the tag style "<foo>" it is also possible to use "[foo]".
  • Use the special tag [adsense:format:group:channel] or [adsense:block:location] to display Google AdSense ads.

More information about formatting options

To combat spam, please enter the code in the image.