Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>Use Rewrite if it is an option:</p> <p><a href="http://www.gnc-web-creations.com/301-redirect.htm" rel="nofollow">http://www.gnc-web-creations.com/301-redirect.htm</a></p> <blockquote> <p>Another method we can use is via mod_rewrite. This requires that the mod_rewrite module is active on your webserver. It usually is and is done by the system administrators when they installed the webserver. mod_rewrite is a very powerful URL re-writing engine and we will only by scratching a hair on its head here.</p> <p>Again, in your .htaccess file</p> <p>RewriteEngine ON RewriteRule ^(.*)$ <a href="http://mynewdomain.com/" rel="nofollow">http://mynewdomain.com/</a>$1 [R=301,L]</p> <p>The above example will re-map your old domain to a new one and issue a 301 status code (permanent redirect). So a request for</p> <p><a href="http://olddomain.com/foobar.html" rel="nofollow">http://olddomain.com/foobar.html</a> will go to</p> <p><a href="http://mynewdomain.com/foobar.html" rel="nofollow">http://mynewdomain.com/foobar.html</a></p> <p>If you simply want to redirect all requests regardless of the page requested to the new domain you could use:</p> <p>RewriteRule /.* <a href="http://mynewdomain.com/" rel="nofollow">http://mynewdomain.com/</a> [R=301,L]</p> <p>In this case no matter what file or directory is requested they will all go to </p> <p><a href="http://mynewdomain.com/" rel="nofollow">http://mynewdomain.com/</a> i.e., <a href="http://myolddomain.com/foobar.html" rel="nofollow">http://myolddomain.com/foobar.html</a></p> <p>will go to <a href="http://mynewdomain.com/" rel="nofollow">http://mynewdomain.com/</a></p> <p>The [R=301,L] means redirect the client and send a 301 status code (R=301) and make this the last rule (L).</p> </blockquote>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload