#1
  1. No Profile Picture
    Junior Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    Sep 2000
    Posts
    2
    Rep Power
    0
    I have lots of virtual hosts but SSL cert. has been purchased only for "www". How do I redirect/rewrite the following:

    1. https://*.abc.com to http://*.abc.com
    but
    2. https://www.abc.com to go thru.

    thanks
  2. #2
  3. No Profile Picture
    freebsd
    Guest
    Devshed Newbie (0 - 499 posts)
    You need to specify how the full directory path is layout for both https and http.
  4. #3
  5. No Profile Picture
    freebsd
    Guest
    Devshed Newbie (0 - 499 posts)
    Have you solved your problem yet? If not, please provide what I requested previously so I can write up the appropriate mod_rewrite code for you.

    I need further details from you.
  6. #4
  7. No Profile Picture
    Junior Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    Sep 2000
    Posts
    2
    Rep Power
    0
    My full problem in detail - two parts:

    1. I need https://www.abc.com to succeed but
    https://*.abc.com to redirect to http://*.abc.com

    <VirtualHost 1.2.3.4:80>
    ServerName abc.com
    ServerAlias *.abc.com www.abc.com
    VirtualDocumentRoot /home/httpd/%1
    .....
    </VirtualHost>

    Same thing for port 443


    2. The next problem, I want some paths in the www.abc.com site to be accessed by https only, i.e. if somebody types in htttp, it should be redirected to https only for certian directories. For example,
    http://www.abc.com/secure/... should be redirected to https://www.abc.com. However, http://www.abc.com/test/.. should still succeed.

    Any help is greatly appreciated.


    Hemanth
  8. #5
  9. No Profile Picture
    freebsd
    Guest
    Devshed Newbie (0 - 499 posts)
    Now I need to make sure whether you can get the environment variable "SERVER_PROTOCOL" correctly. Do you know how? If so, please provide the output of $ENV{'SERVER_PROTOCOL'} or <!--#echo var="SERVER_PROTOCOL"--> for both http and https.

IMN logo majestic logo threadwatch logo seochat tools logo