httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From John Williams <>
Subject [users@httpd] URL redirection
Date Thu, 15 Dec 2016 15:19:22 GMT
I need to redirect the contents of a URL site from (say)  to (say)
 I need to have port 80 and port 443 redirected.  So the requirement is: redirect to redirect

Will the following rule work?
<VirtualHost *:80>  ServerName  DocumentRoot /var/www/html/zzz  ServerAdmin  ServerAlias  RewriteEngine On  RewriteRule ^/$ http://yyy/somepage.html
[R=301,NC,L]  ErrorLog /var/log/httpd/zzz.error.log</VirtualHost>
I tested it for port 80 redirection. That worked fine.  Will that also work for SSL?  Also,
what does the [R=301,NC,L] imply?  That is a googled rule and I don't quite know what it
View raw message