home_button_01 aboutus_button_01 services_button_01 contactus_button_01
May 13th, 2008 at 5:49 PM
Home arrow Publications arrow Apache SSL Redirect
Apache SSL Redirect PDF Print E-mail
Sometimes it's nice to be able to automatically redirect pages or directories over to the SSL sencrypted page for things like logins and credit card information. With Apache it's a very easy process with mod_rewrite. Here is example code for redirecting an HTTP website to an SSL website using Apache's mod_rewrite...

 

Add everything in between the quotes to an .htaccess file in the directory to protect on your Apache server. This works on Apache for UNIX and Apache for Windows.

"
RewriteEngine On
RewriteCond %{SERVER_PORT} !^443$
RewriteRule ^.*$ https://%{SERVER_NAME}%{REQUEST_URI} [L,R]
"

 
< Prev   Next >
Main Menu
Home
About Us
Services
Contact Us
Publications
Links
Search
Accounting
Pay Online
Billing Policies
Remote Help
Security Updates
Monitoring Services
Bandwidth Test
VoIP Bandwidth Test
Employment Questionnaire
Login Form





Lost Password?

© 2004 Valley Technologies, LLC. All rights reserved.