here goes...
first: production box is fc4 (yea it's old but it works good), kernel 2.6.17-1.2142_FC4, Apache 2.0.54, php 5.0.4-10.5, running 6 websites, mail, SSH, ssl, etc... everything is working fine.
ONE of the sites has a secure Cert. and works fine on port 443 when you type
HTTPS://... but shows apache 404 error page when http:// as the address.
my question: how do I make apache redirect all http port 80 request, FOR THIS SITE ONLY to HTTPS port 443.
before you say it.. I've tried:
RewriteEngine On
RewriteCond %{SERVER_PORT} !443
RewriteRule (.*)
https://www.securesite.com/ [R]
and
Redirect permanent /
https://www.securesite.com/
in the httpd.conf file but apache wants to redirect ALL 6 site to
HTTPS://www.securesite.com/ (not good... hahaha)
I tried adding both of the above (one at a time, hahaha) to a .htaccess file in the public dir and also as directives in the <VirtualHost> section of httpd.conf, FOR THE SITE, but still got the apache 404 page...
I've also tried making "auto-redirect" and "be safe - click here" error pages with:
ErrorDocument 404 /go2secure.html
then:
ErrorDocument 404 /var/home/public_html/error/go2secure.html
in both files (httpd.conf and .htaccess) but still got the apache 404 page... (go2secure.htm never loaded/displayed in the browser)
all checks were tried with both IE and Foxfire...
any suggestions would be great...
hivtop
"to bad there are so many hackers cuz windows would be so much easier"... hahaha