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 webmas...@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

Reply via email to