<VirtualHost *:80>
    ServerName old.example.com
    DocumentRoot /var/www/html/old.example.com
    <Directory /var/www/html/old.example.com>
        RewriteEngine on
        RewriteRule .* https://new.example.com [R-301,L]
    </Directory>
</VirtualHost>




関連 2019-07-18 18:03:31