Title: www.mysite.com to https://www.mysite.com
Last modified: August 30, 2016

---

# www.mysite.com to https://www.mysite.com

 *  [elindydotcom](https://wordpress.org/support/users/elindydotcom/)
 * (@elindydotcom)
 * [10 years, 11 months ago](https://wordpress.org/support/topic/wwwmysitecom-to-httpswwwmysitecom/)
 * Hi:
 * I installed SSL on my site on IIS 8.5 For the most part it works fine if I use
   the HTTP:// prefix direction . But, if I type in [http://www.mysite.com](http://www.mysite.com)
   or [http://www.mysite.com](http://www.mysite.com) into the browser, it does not
   redirect to the [https://www.mysite.com](https://www.mysite.com) domain.
 * Note that this is a multisite install so I cannot edit the URL in the site settings
   to change it to HTTPS.
 * Any advice on how to proceed would be appreciated!

Viewing 5 replies - 1 through 5 (of 5 total)

 *  [Pioneer Web Design](https://wordpress.org/support/users/swansonphotos/)
 * (@swansonphotos)
 * [10 years, 11 months ago](https://wordpress.org/support/topic/wwwmysitecom-to-httpswwwmysitecom/#post-6298888)
 * Please share a link to (the actual site here so we can review).
 * Also please note that the rewrite rules for IIS are not the same as those for
   Apache.
 * [https://codex.wordpress.org/Using_Permalinks](https://codex.wordpress.org/Using_Permalinks)
 *  Thread Starter [elindydotcom](https://wordpress.org/support/users/elindydotcom/)
 * (@elindydotcom)
 * [10 years, 11 months ago](https://wordpress.org/support/topic/wwwmysitecom-to-httpswwwmysitecom/#post-6298895)
 * Hi:
 * The site name is [http://www.ncubesoftware.com](http://www.ncubesoftware.com).
 * Thanks!
 * -eLindy
 * PS: Thanks for the link. I believe I have all those entries in the .htaccess 
   and web.config file set. If you need me to attach them let me know.
 *  [accuwebhosting](https://wordpress.org/support/users/accuwebhosting/)
 * (@accuwebhosting)
 * [10 years, 11 months ago](https://wordpress.org/support/topic/wwwmysitecom-to-httpswwwmysitecom/#post-6298900)
 * Hi,
 * With IIS, you will need URL Rewrite module. Place the following code in web.config
   of your website and have a try. It will force HTTPS for ALL resources (using 
   301 Permanent Redirect):
 *     ```
       <?xml version="1.0" encoding="UTF-8"?>
       <configuration>
           <system.webServer>
               <rewrite>
                   <rules>
                       <clear />
                       <rule name="Redirect to https" stopProcessing="true">
                           <match url="(.*)" />
                           <conditions>
                               <add input="{HTTPS}" pattern="off" ignoreCase="true" />
                           </conditions>
                           <action type="Redirect" url="https://{HTTP_HOST}{REQUEST_URI}" redirectType="Permanent" appendQueryString="false" />
                       </rule>
                   </rules>
               </rewrite>
           </system.webServer>
       </configuration>
       ```
   
 * Hope that helps.
 * Thanks,
 *  Thread Starter [elindydotcom](https://wordpress.org/support/users/elindydotcom/)
 * (@elindydotcom)
 * [10 years, 11 months ago](https://wordpress.org/support/topic/wwwmysitecom-to-httpswwwmysitecom/#post-6298951)
 * Hi Accuwebhosting:
 * Thanks very much for the info. One question – does this replace all the WordPress
   url-rewrite rules already in the config.web file or is this additive to them.
   If it is additive, I assume it goes above all the existing WordPress rules?
 * Thanks!
 *  [accuwebhosting](https://wordpress.org/support/users/accuwebhosting/)
 * (@accuwebhosting)
 * [10 years, 11 months ago](https://wordpress.org/support/topic/wwwmysitecom-to-httpswwwmysitecom/#post-6298991)
 * Hi,
 * Yes, it will replace all existing WordPress URL-rewrite rules. The best approach
   to test these rules is to copy existing web.config file and rename the original
   file like web.config.backup.
 * Now, paste these rules in duplicate web.config file (do not forget to remove 
   existing rules) and rename it with web.config.
 * Thanks,

Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘www.mysite.com to https://www.mysite.com’ is closed to new replies.

## Tags

 * [iis](https://wordpress.org/support/topic-tag/iis/)
 * [SSL](https://wordpress.org/support/topic-tag/ssl/)
 * [url rewrite](https://wordpress.org/support/topic-tag/url-rewrite/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 5 replies
 * 3 participants
 * Last reply from: [accuwebhosting](https://wordpress.org/support/users/accuwebhosting/)
 * Last activity: [10 years, 11 months ago](https://wordpress.org/support/topic/wwwmysitecom-to-httpswwwmysitecom/#post-6298991)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
