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 [R,L]RewriteCond %{SERVER_PORT} !^443$
RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI} [R,L]RewriteCond %{HTTP_HOST} !^www\.
RewriteRule ^(.*)$ https://www.%{HTTP_HOST}%{REQUEST_URI}$1 [R=301,L]
RewriteCond %{HTTPS} off
RewriteRule ^(.*)$ 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 //**
- The topic ‘HTTPS, SSL with windows server help’ is closed to new replies.