httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From John Williams <john.1...@yahoo.com.INVALID>
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) zzz.com  to (say) yyy.com/somepage.html.
 I need to have port 80 and port 443 redirected.  So the requirement is:
http://zzz.com/ redirect to http://yyy.com/somepage.html:25999ANDhttps://zzz.com/ redirect
to https://yyy.com/somepage.html:25999

Will the following rule work?
<VirtualHost *:80>  ServerName zzz.com  DocumentRoot /var/www/html/zzz  ServerAdmin
webmaster@zzz.com  ServerAlias www.zzz.com  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
does.
TIA
Mime
View raw message