We help IT Professionals succeed at work.
Get Started

Configure an htaccess file with an SSL Certificate

gisvpn asked
Last Modified: 2012-05-12

I have an SSL certificate installed on my Apache server where I am doing some WordPress development. I am new to the use and configuration of the SSL certificate however and am looking for help.

I have the certificate installed on the server and I believe that I need to configure the htacess document to define the pages or folders in which I need the browser to be forced to go to its HTTPs address. I have some examples below which I would need a little help with to configure as examples.



I would like to ensure that when users are viewing the Http://www.domain.com/newsletter/signup.html URL they can only ever see Https://www.domain.com/newsletter/signup.html - i.e. they cannot see the HTTP unsecure version.

With the Http://www.domain.com/portal URL I would like to ensure *ALL* the pages and files held within this folder are only ever viewed via HTTPs also.

Also as a general question, is there more than one way of doing this? I have been reading up on the internet to see if I can find out more information about this however it appears that there are different techniques to doing this - is there a standard recommended one at all thats generally accepted as the normal one?

Many thanks in advance.


Watch Question
This problem has been solved!
Unlock 1 Answer and 4 Comments.
See Answer
Why Experts Exchange?

Experts Exchange always has the answer, or at the least points me in the correct direction! It is like having another employee that is extremely experienced.

Jim Murphy
Programmer at Smart IT Solutions

When asked, what has been your best career decision?

Deciding to stick with EE.

Mohamed Asif
Technical Department Head

Being involved with EE helped me to grow personally and professionally.

Carl Webster
CTP, Sr Infrastructure Consultant
Ask ANY Question

Connect with Certified Experts to gain insight and support on specific technology challenges including:

  • Troubleshooting
  • Research
  • Professional Opinions
Did You Know?

We've partnered with two important charities to provide clean water and computer science education to those who need it most. READ MORE