You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by Ed Avis <ed...@membled.com> on 2004/02/26 20:37:59 UTC

[users@httpd] Re: Mod Rewrite URL Redirection

"Mike Wagner" <Mw...@nps.k12.va.us> writes:

>I want to be able to have http://testdomain.cxm to point to
>https://testdomain.cxm.  I was told that mod_rewrite can do this.

I thought the 'sslrequiressl' directive would normally be used.

-- 
Ed Avis <ed...@membled.com>


---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Re: [users@httpd] Re: Mod Rewrite URL Redirection

Posted by Darryl Cook <dl...@cs.appstate.edu>.
this will work as it was passed on to me by someone on this list as 
well......

    RewriteEngine on
    RewriteCond %{REMOTE_ADDR} 152.10\.[0-9]+\.[0-9]+$
    RewriteCond %{HTTPS} !=on
    RewriteRule ^/(.*)$ https://%{SERVER_NAME}/$1 [R,L]

substitute 152.10 for whatever your ip address begins with.

darryl

Ed Avis wrote:

>"Mike Wagner" <Mw...@nps.k12.va.us> writes:
>
>  
>
>>I want to be able to have http://testdomain.cxm to point to
>>https://testdomain.cxm.  I was told that mod_rewrite can do this.
>>    
>>
>
>I thought the 'sslrequiressl' directive would normally be used.
>
>  
>