Does anyone know how to enforce https on a Windows server? It seems Linux systems can just add code the htaccess file but the process differs for Windows.
Announcement
Collapse
No announcement yet.
Forcing the use of HTTPS:// on your site
Collapse
X
-
In your web.config insert the followng code
Code:<rule name="HTTP to HTTPS redirect" stopProcessing="true"> <match url="(.*)" /> <conditions> <add input="{HTTPS}" pattern="off" ignoreCase="true" /> </conditions> <action type="Redirect" redirectType="Found" url="https://{HTTP_HOST}/{R:1}" /> </rule>
Wise men say nothing Fools never listen
- Top
- Translate
- Bottom
- Likes 1
-
I tried the following in core/includes but it still shows unsecured content:
Code:<!-- This file is for IIS to block direct access to this directory to the webserver. This will not affect Apache (which has similar rules in the .htaccess file in this directory --> <?xml version="1.0" encoding="UTF-8"?> <configuration> <system.webServer> <rewrite> <rules> <rule name="HTTP to HTTPS redirect" stopProcessing="true"> <match url="(.*)" /> <conditions> <add input="{HTTPS}" pattern="off" ignoreCase="true" /> </conditions> <action type="Redirect" redirectType="Found" url="https://{HTTP_HOST}/{R:1}" /> </rule> </rules> </rewrite> <handlers> <add name="Deny" path="*" verb="*" type="System.Web.HttpForbiddenHandler" /> </handlers> </system.webServer> </configuration>
- Top
- Translate
- Bottom
Comment
-
I believe it should be in web.config file in the vB root directory.Helpful? Donate. Thanks!
Fast VPS Host for vBulletin:
A2 Hosting & IONOS
- Top
- Translate
- Bottom
Comment
-
yes it will make sure all images has https instead of http
Then try to find the images causing the the lock at the address bar not turning green saying it is secure is to click on the lock the go to more information select media this will show the image that is causing the problemWise men say nothing Fools never listen
- Top
- Translate
- Bottom
Comment
-
For user-generated content, it is inevitable that users would link to images using http and that will cause mixed content warning. To prevent that, you can block all mixed content
Helpful? Donate. Thanks!
Fast VPS Host for vBulletin:
A2 Hosting & IONOS
- Top
- Translate
- Bottom
Comment
-
Users Viewing This Page
Collapse
There is 1 user viewing this forum topic.
- Guest
Latest Posts
Collapse
-
by glennrocksvbNo, it doesn't work in vB6. The online/offline status icon has changed to Font Awesome icon in vB6 and the HTML and CSS classes have changed as well....Today, 03:43 PM
-
by nekro711Hello guys,
Im new in this vbulletin thing and while i googled for some info i found this forum.04-15-2024, 04:12 PM
Comment