From e172af43299844b91d6d085cfcfbb0e92288412b Mon Sep 17 00:00:00 2001 From: bserie Date: Fri, 24 Mar 2017 11:15:39 +0100 Subject: [PATCH] RedirectMatch ^/$ /sub/ --- HowtoApache.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/HowtoApache.md b/HowtoApache.md index d40144c7..51bff2fb 100644 --- a/HowtoApache.md +++ b/HowtoApache.md @@ -388,6 +388,9 @@ RedirectPermanent / http://new.example.com RedirectMatch ^/(.*)$ http://new.example.com/$1 +# GET / --> /sub/ +RedirectMatch ^/$ /sub/ + RewriteRule ^/(.*) http://new.example.com/$1 [L,R=permanent] RewriteCond %{REQUEST_URI} !^/foo.txt