- 0
Question about redirects (http://www to https://non-www)
-
Recently Browsing 0 members
- No registered users viewing this page.
-
Similar Content
-
City in France is latest to ditch Windows and Office in favor of Linux and FOSS alternatives 1 2
By Usama Jawad96,
- 42 replies
- 1 view
-
Here's your first look at Raycast for Windows, now in beta
By David Uzondu,
- 13 replies
- 0 views
-
Microsoft confirms new issues plaguing Chrome on Windows
By Usama Jawad96,
- microsoft
- google chrome
- (and 5 more)
- 2 replies
- 0 views
-
PC manufacturers used to trick BIOS copyright strings to get full editions of trial software
By Usama Jawad96,
- 5 replies
- 0 views
-
Perplexity starts testing its Comet AI browser on Windows
By Usama Jawad96,
- perplexity
- perplexity comet
- (and 4 more)
- 7 replies
- 0 views
-
Question
M_Lyons10
Good morning everyone!
Redirects and web.config changes still make me extremely nervous, so I always like to ask before I actually do anything.
We recently upgraded to https and I set up a redirect from http to https. The problem I am having is that it is redirecting multiple times. From http://www to http://non-www and then again from http://non-www to https://non-www.
How can I redirect once? I've noticed a speed impact from doing it this way.
So, I would like to redirect both http://www and http://non-www to https://non-www for the entire domain.
I do have a couple of pages that have been redirected invidivually as well because the page has moved.
I'm using Windows hosting.
Here is my htaccess:
#Redirect from WWW to non WWW
RewriteEngine On
RewriteCond %{HTTP_HOST} ^www.[mysite].com [NC]
RewriteRule ^(.*)$ https://[mysite].com$1 [L,R=301]
Thank you again for your help!
Link to comment
https://www.neowin.net/forum/topic/1383664-question-about-redirects-httpwww-to-httpsnon-www/Share on other sites
7 answers to this question
Recommended Posts