Noong Tuesday, 11 September, 2007 12:16 PM sinulat ni Linux Cook

> Hi!
> 
> What I'm trying to achieve is whenever I browse http for my website, it 
> automatically redirects me into https without asking for SSL 
> Confirmation. I've seen some sites same as what I'm thinking. How can 
> this be done on apache?

for the redirection, something like:
# this will redirect web requests to the https link

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

there are other ways to do it but the above works for me.
check the httpd docs in apache.org for more info.

for the second one, not sure if it can be done on the server side.
i think its a browser security feature.

hth.

erik
-- 

roderick e. tapang, nclp
retapang at gmail dot com
  _
(o_.'http://counter.li.org/
//\  ----------------------
V_/_ Linux User # 253842
_________________________________________________
Philippine Linux Users' Group (PLUG) Mailing List
[email protected] (#PLUG @ irc.free.net.ph)
Read the Guidelines: http://linux.org.ph/lists
Searchable Archives: http://archives.free.net.ph

Reply via email to