The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
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 |
#2
|
||||
|
||||
You have a couple errors.
Code:
<rule name="http to https" stopProcessing="true"> <match url="(.*)" /> <conditions> <add input="{HTTPS}" pattern="^OFF$" /> </conditions> <action type="Redirect" url="https://{HTTP_HOST}/{R:1}" redirectType="SeeOther" /> </rule> Code:
<rule name="CanonicalHostNameRule1"> <match url="(.*)" /> <conditions> <add input="{HTTP_HOST}" pattern="^www\.yourdomain\.com$" negate="true" /> </conditions> <action type="Redirect" url="http://www.yourdomain.com/{R:1}" /> </rule> |
Благодарность от: | ||
RichieBoy67 |
#3
|
||||
|
||||
try my product =)
https://vborg.vbsupport.ru/showthread.php?t=322433 |
#4
|
||||
|
||||
Quote:
Thanks |
#5
|
||||
|
||||
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:
|
Благодарность от: | ||
Stratis |
#6
|
||||
|
||||
redirects should ALWAYS be done at the server level!
|
#7
|
||||
|
||||
#1 - I only have access to the forum and forum directory, not the root
#2 - Only the forum needs to be switched to https:// |
#8
|
||||
|
||||
.htaccess or web.config suffices as server-level config, per-directory too.
|
#9
|
||||
|
||||
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.
|
#10
|
||||
|
||||
ok. let me know if it doesn't work. i use windows server myself and have it setup somewhere.
|
Благодарность от: | ||
RichieBoy67 |
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|