Vote count:
0
My website is running on host.com/test. I want it to run on server alias newhost.com . I am trying to map my virtual host file
<VirtualHost *:80>
ServerAlias host.com
ServerAlias newhost.com
Alias /test /test/codebase
Options All ExecCGI FollowSymLinks +Includes
#Alias
<Directory "/test/codebase/">
Options All
#override
AllowOverride All
Require all granted
</Directory>
//Rewrite code
RewriteEngine on
RewriteCond %{HTTP_HOST} ^host.com$
RewriteRule ^/test/(.+)$ http://newhost.com/$1 [R=301,L]
</Virtualhost>
I get a blank page. How can this be fixed?
asked 35 secs ago
Aucun commentaire:
Enregistrer un commentaire