![]() |
Windows Server https:// redirect
I have the code below to redirect to https://www using web.config. Is this correct?
<?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://www{HTTP_HOST}{REQUEST_URI}" redirectType="Permanent" appendQueryString="false" /> </rule> </rules> </rewrite> </system.webServer> </configuration> Also, how do I add this to the config? It already has <handlers></handlers>.. I just paste it in there above <system.webServer> Thanks, Rich |
You have a couple errors.
Code:
<rule name="http to https" stopProcessing="true"> Code:
<rule name="CanonicalHostNameRule1"> |
try my product =)
https://vborg.vbsupport.ru/showthread.php?t=322433 |
Quote:
Thanks |
there's no reason it shouldn't give it a shot and let me know, there are no settings for it. it is simply a plugin at the init_startup hook redirecting from http to https, if you do not already have https set up prior to installing it will not work.
PHP Code:
|
redirects should ALWAYS be done at the server level!
|
Quote:
#2 - Only the forum needs to be switched to https:// |
.htaccess or web.config suffices as server-level config, per-directory too.
|
Thanks, but I know this much already. lol That is what I was trying to figure out. How to do the https:// in the web.config.. I think I got it now anyways but thanks much.
|
ok. let me know if it doesn't work. i use windows server myself and have it setup somewhere.
|
All times are GMT. The time now is 01:30 AM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|