Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

force ssl

Status
Not open for further replies.

dingleberry

Programmer
Dec 13, 2002
143
US
Hi, I'm running apache mod ssl on a domain as a virtual host. I'm trying to force a certain sub file of that domain when accessed to redirect to https.

Because users can access

and
I'm simply trying to make it so that if users go to

they are redirected to
Is this possible? I've tried doing it with

Redirect but to no avail. Any ideas?

TIA,
dan
 
You may use mod_rewrite and a rewrite rule. Check out the apache sig conferences for sample syntax.
 
Oh, BTW, ssl only works as ip-based vhost. Using named virtual hosts wont' work for this one.
Here is a reference on using rewrite.
thread65-539370
 
I wouldn't think you'd need to use redirect in this case. If "everybody" is going to the ssl page, then couldn't you just call it using https:// in your link?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top