![]() |
|
Thread Tools |
#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
__________________
No members have liked this post.
Last edited by RichieBoy67; 25 Jan 2017 at 21:10. |
#2
|
||||||||
|
||||||||
You have a couple errors.
Set canonical domain for www like this.
The following members like this post: RichieBoy67
|
#3
|
||||
|
||||
try my product =)
http://www.vbulletin.org/forum/showthread.php?t=322433
__________________
If you need custom work done please use Dirt RIF CustUmz Owner of vBTeam vBulletin 3.8.14 DRC Edition PHP 7.4 Compatible- NOT a null, NOT complete files Requires a legit copy of vBulletin 3.8.11. No members have liked this post.
|
#4
|
||||
|
||||
Originally Posted by Dr.CustUmz
Ryan, does it work in vb4.2xx ?![]()
Thanks No members have liked this post.
|
#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.
__________________
If you need custom work done please use Dirt RIF CustUmz Owner of vBTeam vBulletin 3.8.14 DRC Edition PHP 7.4 Compatible- NOT a null, NOT complete files Requires a legit copy of vBulletin 3.8.11. The following members like this post: Stratis
|
#6
|
||||
|
||||
redirects should ALWAYS be done at the server level!
No members have liked this post.
|
#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://
__________________
No members have liked this post.
|
#8
|
||||
|
||||
.htaccess or web.config suffices as server-level config, per-directory too.
No members have liked this post.
|
#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.
__________________
No members have liked this post.
|
#10
|
||||
|
||||
ok. let me know if it doesn't work. i use windows server myself and have it setup somewhere.
The following members like this post: RichieBoy67
|
#11
|
||||
|
||||
Does any one have solution for both redirect in .htaccess ?
http to https non www to www with 301 Thanks No members have liked this post.
|
#12
|
||||
|
||||
Originally Posted by Stratis
I use this:![]()
RewriteEngine On RewriteCond %{HTTPS} !=on RewriteCond %{HTTP:X-Forwarded-Proto} !https [NC] RewriteRule ^ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
__________________
The following members like this post: Stratis
|
![]() |
Tags |
ssl, windows server |
«
Previous Thread
|
Next Thread
»
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
Thread Tools | |
|
|
New To Site? | Need Help? |
All times are GMT. The time now is 12:18.