2024. 7. 30. 17:02

URL RewriteRule / Centos 7 /Apache

 

/etc/httpd/conf.d/vhosts.conf

 

경로에서 수정.

 

VirtualHost 값을 하나 더 써준다.

 

 

<VirtualHost *:80>
    ServerName mavencs.net
    ServerAlias http://www.Old-domain
    RewriteEngine on
    RewriteRule ^(.*)$ http://포워딩할도메인$1 [L,R=301]
</VirtualHost>