Created
December 11, 2013 10:07
-
-
Save mommaroodles/7907950 to your computer and use it in GitHub Desktop.
Redirect A Folder To A Subdomain
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
RewriteEngine On | |
RewriteBase / | |
RewriteCond %{HTTP_HOST} ^example.com [NC] | |
RewriteRule ^(.*)$ http://www.example.com$1 [L,R=301] | |
RedirectMatch 301 ^/blog/(.*)$ http://blog.example.com/$1 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment