Redirect all visitors to a subdirectory

If you just migrated your entire site to a new platform with a new design it is a LOT easier to change everything over if you just redirect all traffic to the new subdirectory containing your new presence. Try this out for redirecting all visitors to a new wordpress presence:

<IfModule mod_rewrite.c> 
        RewriteEngine On

        RewriteCond %{REQUEST_URI} !^/?admin/ [OR] 
        RewriteCond %{REQUEST_URI} !^/?wordpress/
        RewriteRule ^/?$ /wordpress/ [L]

</IfModule>
/var/customers/webs/cw01/wiki/data/pages/apache2/redirect_to_subdirectory.txt · Last modified: 2011/02/24 14:24 by wadmin
 
Except where otherwise noted, content on this wiki is licensed under the following license: CC Attribution-Noncommercial-Share Alike 3.0 Unported
Recent changes RSS feed Donate Powered by PHP Valid XHTML 1.0 Valid CSS Driven by DokuWiki