On 11/30/05, Rob Benton <rob.benton@xxxxxxxxxxxxxx> wrote: > I've got a site on my intranet running with mod_ssl. This site used to > run over plain http://. I'd like to redirect everyone trying to access > the old address to the new address via https://. > > I tried just: > Redirect permanent http://site https://site > > but I get a 400 Bad Request error. I also looked at mod_rewrite but > wasn't sure if it would work for this. What is the > simplest/best/easiest way to do this? You can do it with mod_rewrite, or you can do it with something like <VirtualHost _default_:80> Redirect permanent / https://site/ </VirtualHost> (Assuming you also have a vhost setup for your ssl site. Joshua. --------------------------------------------------------------------- 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@xxxxxxxxxxxxxxxx " from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx