1

I have a WordPress site running on IIS. The site has an associated SSL Certificate. Right now I am able to access the site with http and https.

How can I get my http to redirect to https?

Any help would be greatly appreciated.

Thank You

1 Answer 1

5

You'll need to update all of the URLs in your database to the HTTPS protocol:

  1. Go and download Interconnect IT's Database Search & Replace Script here
  2. Unzip the file and drop the folder where your WordPress is installed (the root) and rename the folder to replace (screenshot)
  3. Navigate to the new folder you created in your browser (ex: http://example.com/replace) and you will see the search/replace tool
  4. In the "search for…" and "replace with…" fields:
    • Replace: http://example.com (non-HTTP)
    • With: https://example.com (HTTPS)

You can click the dry run button under actions to see what it will be replacing before you execute the script. Once you're done be sure to remove the /replace/ folder.

Additionally, you can also look into using the Remove HTTP plugin which automatically scans your website and removes both HTTP and HTTPS protocols from your URL links. This will resolve mixed content warnings.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.