hosted by liquidweb


Go Back   Web Hosting Talk : Web Hosting Main Forums : Web Hosting : Web Hosting Tutorials : Load different folder with http and https
Reply

Web Hosting Tutorials Tutorials related to shared hosting.
Forum Jump

Load different folder with http and https

Reply Post New Thread In Web Hosting Tutorials Subscription
 
Send news tip View All Posts Thread Tools Search this Thread Display Modes
  #1  
Old 07-10-2007, 07:55 PM
topdome topdome is offline
Disabled
 
Join Date: Dec 2006
Posts: 4

Load different folder with http and https


RewriteEngine On
RewriteCond %{SERVER_PORT} ^443$
RewriteRule ^(.*)$ https://www.garantiesprivilege.com/httpsdocs/$1 [L,R]

RewriteEngine On
RewriteCond %{SERVER_PORT} ^80$
RewriteRule ^(.*)$ http://www.garantiesprivilege.com/httpdocs/$1 [L,R]

Reply With Quote


Sponsored Links
  #2  
Old 08-09-2007, 09:45 AM
stugs stugs is offline
Newbie
 
Join Date: Aug 2007
Posts: 13
Neat Idea. Couldn't you just setup the HTTPS host in Apache to point to one directory and the non HTTP host to point to another. Seems cleaner.

Reply With Quote
  #3  
Old 02-24-2010, 02:13 AM
Moviefrontier Moviefrontier is offline
Junior Guru Wannabe
 
Join Date: Feb 2010
Posts: 42
I see https on some important sites.And I still don't what's the differences between http and https.Can you guys explain it?

Reply With Quote
Sponsored Links
  #4  
Old 02-24-2010, 09:49 PM
Josh Allison Josh Allison is offline
WHT Addict
 
Join Date: Mar 2008
Location: England, UK
Posts: 114
Quote:
Originally Posted by Moviefrontier View Post
I see https on some important sites.And I still don't what's the differences between http and https.Can you guys explain it?
Have a read up on this:
http://en.wikipedia.org/wiki/HTTPS

Reply With Quote
  #5  
Old 02-25-2010, 10:09 PM
angathan angathan is offline
Junior Guru Wannabe
 
Join Date: Aug 2009
Posts: 79
How do I set HTTPS for a specific folder and not for entire website.

Reply With Quote
  #6  
Old 05-06-2010, 03:34 AM
Priyankaa Priyankaa is offline
New Member
 
Join Date: May 2010
Posts: 0
Good idea. We can use https for more security purpose isn't it?

Reply With Quote
  #7  
Old 07-31-2010, 03:52 AM
WeHostIt WeHostIt is offline
Junior Guru Wannabe
 
Join Date: Jun 2010
Location: Geelong, VIC, Australia
Posts: 61
Quote:
Originally Posted by Priyankaa View Post
Good idea. We can use https for more security purpose isn't it?
Yes, HTTPS will encrypt all data sent between the web server and the client. This is very important wher eyour website deals with private information, and critical where financial transactions are taking place. Without SSL, it is not very difficult for someone 'sniffing' the network to obtain these confidential details.

In terms of setting it up, my reccomendation is either to make the whole website SSL protected, or set up a sub-domain (such as secure.yourdomain.com) where the pages that need protection are situated.

Reply With Quote
  #8  
Old 08-06-2010, 05:02 AM
navibd navibd is offline
Newbie
 
Join Date: Aug 2010
Posts: 9
should we pay for ussing https or ssl ? or it is free ?
and where is the cheapest compnay who offer this service ?
and can I use ssl from another company with my host which is in another country... ?

Reply With Quote
  #9  
Old 08-06-2010, 05:45 AM
WeHostIt WeHostIt is offline
Junior Guru Wannabe
 
Join Date: Jun 2010
Location: Geelong, VIC, Australia
Posts: 61
Quote:
Originally Posted by navibd View Post
should we pay for ussing https or ssl ? or it is free ?
and where is the cheapest compnay who offer this service ?
and can I use ssl from another company with my host which is in another country... ?
if your website deals with private or confidential information then should defintiley use ssl. there are some SSL certificates that you can get for free - but RapidSSL certificates are very cheap.

you can purchase the ssl through another provider - you will just need to make sure you know how to install it

Reply With Quote
  #10  
Old 08-22-2010, 06:20 AM
eccspert eccspert is offline
Junior Guru Wannabe
 
Join Date: Dec 2009
Location: London, UK
Posts: 40
Thanks for this idea

Reply With Quote
  #11  
Old 08-23-2010, 01:07 AM
coax coax is offline
renegade
 
Join Date: Feb 2006
Posts: 1,042
Quote:
Originally Posted by angathan View Post
How do I set HTTPS for a specific folder and not for entire website.
You can't. https is a protocol, and thus completely independent of folder structure.
You can have both http and https on a domain or sub domain, but it will have to be on the WHOLE domain.
If you have a folder structure like /home/domain/ and /home/domain/ssl then set up a sub domain with https for the ssl folder, and then forward all requests from http:// to https://

Reply With Quote
  #12  
Old 08-23-2010, 02:14 AM
WeHostIt WeHostIt is offline
Junior Guru Wannabe
 
Join Date: Jun 2010
Location: Geelong, VIC, Australia
Posts: 61
Quote:
Originally Posted by coax View Post
You can't. https is a protocol, and thus completely independent of folder structure.
You can have both http and https on a domain or sub domain, but it will have to be on the WHOLE domain.
If you have a folder structure like /home/domain/ and /home/domain/ssl then set up a sub domain with https for the ssl folder, and then forward all requests from http:// to https://
I belive you can force the web server to require SSL for particular folders.

Reply With Quote
  #13  
Old 09-28-2010, 01:14 PM
TheHostGuru TheHostGuru is offline
Temporarily Suspended
 
Join Date: Sep 2010
Location: New Jersey
Posts: 39
I love rewrite rules. I'm actually getting to learn them a bit more and it's so simple to rewrite to a secure environment. I especially like to use it on my client panels because my clients, along with I, like to have all of our information secure.

Reply With Quote
Reply

Related posts from TheWhir.com
Title Type Date Posted
GoGrid Launches Dynamic Load Balancer Service Built for Cloud Web Hosting News 2013-01-29 10:07:53
50d7e27f-9f18-494f-800d-45d945a799a0 Listing 2013-03-05 18:24:25
CDNetworks Releases New Versions of Cloud Load Balancer, Cloud Storage Web Hosting News 2012-09-10 15:26:28
Web Host Rackspace Adds New Features to Cloud Load Balancer Web Hosting News 2011-09-16 16:35:04
Cloud Infrastructure Firm Linode Launches Load Balancer as a Service Web Hosting News 2011-07-15 19:05:12


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes
Postbit Selector

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
Login:
Log in with your username and password
Username:
Password:



Forgot Password?
Advertisement:
Web Hosting News:



 

X

Welcome to WebHostingTalk.com

Create your username to jump into the discussion!

WebHostingTalk.com is the largest, most influentual web hosting community on the Internet. Join us by filling in the form below.


(4 digit year)

Already a member?