Title: HTTPS, SSL with windows server help
Last modified: August 22, 2016

---

# HTTPS, SSL with windows server help

 *  Resolved [circavista](https://wordpress.org/support/users/circavista/)
 * (@circavista)
 * [11 years, 3 months ago](https://wordpress.org/support/topic/https-ssl-with-windows-server-help/)
 * So I’m running a wordpress site off an windows server with apache and I’m trying
   to get an HTTPS to work on the site. I’ve got an SSL, taken care of all the bindings
   in IIS and what not, but when I go to force SSL and HTTPS on the site, I start
   getting 404 errors on all pages with SSL forced. I’ve done some research and 
   heard that there is a piece of code you have to input into your .htaccess file
   in order to get this to work.
 * The code is below, but I can’t seem to get it to work… I know you need to replace‘
   wordpress_folder’ and ‘www.yourwebsite.ext’ with your own specific info. I’m 
   just wondering what that info is. I’ve put in my URL but am stumped to what to
   put for ‘wordpress_folder’ as the wordpress folders and files are just in the
   main directory of my URL (www.example.com/)
 * Can anyone provide an example of their own code except completed so I can see
   what to put for ‘wordpress_folder’? I feel like I’m so close… A little help would
   be most appreciated.
 * I’ve pasted what my current .htaccess file contains as of right now:
 * //**start .htaccess contents //**
 * # BEGIN WordPresss
 * RewriteEngine On
    RewriteCond %{SERVER_PORT} 80 RewriteCond %{REQUEST_URI} wordpress_folder
   RewriteRule ^(.*)$ [https://www.yourwebsite.ext/wordpress_folder/$1](https://www.yourwebsite.ext/wordpress_folder/$1)[
   R,L]
 * RewriteCond %{SERVER_PORT} !^443$
    RewriteRule (.*) [https://%](https://%){HTTP_HOST}%{
   REQUEST_URI} [R,L]
 * RewriteCond %{HTTP_HOST} !^www\.
    RewriteRule ^(.*)$ [https://www.%](https://www.%){
   HTTP_HOST}%{REQUEST_URI}$1 [R=301,L] RewriteCond %{HTTPS} off RewriteRule ^(.*)
   $ [https://%](https://%){HTTP_HOST}%{REQUEST_URI}$1
 * <IfModule mod_rewrite.c>
    RewriteEngine On RewriteBase / RewriteRule ^index\.
   php$ – [L] RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME}!-
   d RewriteRule . /index.php [L] </IfModule>
 * # END WordPresss
 * //** end .htaccess contents //**
 * [https://wordpress.org/plugins/wordpress-https/](https://wordpress.org/plugins/wordpress-https/)

The topic ‘HTTPS, SSL with windows server help’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/wordpress-https_bec2c9.svg)
 * [WordPress HTTPS (SSL)](https://wordpress.org/plugins/wordpress-https/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wordpress-https/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wordpress-https/)
 * [Active Topics](https://wordpress.org/support/plugin/wordpress-https/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wordpress-https/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wordpress-https/reviews/)

## Tags

 * [htaccess](https://wordpress.org/support/topic-tag/htaccess/)
 * [SSL](https://wordpress.org/support/topic-tag/ssl/)
 * [windows server](https://wordpress.org/support/topic-tag/windows-server/)

 * 0 replies
 * 1 participant
 * Last reply from: [circavista](https://wordpress.org/support/users/circavista/)
 * Last activity: [11 years, 3 months ago](https://wordpress.org/support/topic/https-ssl-with-windows-server-help/)
 * Status: resolved