18
0
Fork 0

RedirectMatch ^/$ /sub/

This commit is contained in:
Benoît S. 2017-03-24 11:15:39 +01:00
parent ee50f63b8d
commit e172af4329
1 changed files with 3 additions and 0 deletions

View File

@ -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