Find the answer to your Linux question:
Results 1 to 2 of 2
Sorry please see attachment as it would not allow me to post url links. Thanks...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Feb 2011
    Posts
    1

    Redirect to https in CentOS Tried Both Methods


    Sorry please see attachment as it would not allow me to post url links.

    Thanks
    Attached Files Attached Files

  2. #2
    Just Joined!
    Join Date
    Feb 2011
    Location
    Zagreb
    Posts
    10
    Hello,

    Here is what U need:

    Code:
    <Directory "/var/www/html">
        RewriteEngine On
        RewriteCond %{HTTPS} on
        RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI}
    </Directory>
    Ofcourse U have to enable mod_rewrite for apache

    and add this code to httpd.conf

    BR
    Dino

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •