Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > ISPConfig 2 > Tips/Tricks/Mods

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #1  
Old 7th September 2007, 22:47
Hans Hans is offline
Moderator
 
Join Date: Dec 2005
Location: Montfoort, The Netherlands
Posts: 2,263
Thanks: 216
Thanked 649 Times in 295 Posts
 
Default Howto redirect from http to https

When you've installed a SSL certificate for a website on your ISPConfig server according the howto here: http://www.howtoforge.com/faq/14_49_en.html the website with the SSL certificate can be visited in two ways: https://www.yourdomain.tld AND http://www.yourdomain.tld.

For security reasons, probably you want to redirect from http to https.
This can be done by putting the next couple of lines within the Apache directives field within ISPConfig for your website with SSL:

RewriteEngine on
RewriteCond %{SERVER_PORT} =80
RewriteRule ^(.*) https://%{SERVER_NAME}%{REQUEST_URI}
__________________
Hans

MrHostman | Managed Hosting

Last edited by Hans; 7th September 2007 at 23:15.
Reply With Quote
The Following 2 Users Say Thank You to Hans For This Useful Post:
falko (8th September 2007), torusturtle (19th September 2007)
Sponsored Links
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
ISPConfig: from http to https & from https to http Hans Tips/Tricks/Mods 13 13th March 2013 00:22
Can ISPConfig listen on http & https? spidie Installation/Configuration 2 31st July 2007 03:53
http redirect to https derfy Feature Requests 2 24th June 2006 22:04
redirect HTTP to HTTPS and reverse zone todvard Installation/Configuration 1 11th March 2006 11:45
redirect an application (egroupware) from http to https blackflag Installation/Configuration 13 21st February 2006 22:44


All times are GMT +2. The time now is 05:31.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.