Questions tagged [www]

24 questions
14
votes
6 answers

to www or not to www

Possible Duplicate: What’s the point in having "www" in a URL? Should I use www in front of a URL or not? Some sites say we should and some say the opposite. Pros Cons If there is no www is in front of the URL, what should I put in my .htaccess…
marc-andre menard
0
votes
1 answer

Redirect on WWW only to non www domain NGINX

I'm confused, does this additional server block will redirect ANY subdomain to https://example.com? server { server_name www.example.com return 301 https://example.com$request_uri; } As far as I read it is bad practice…
Andrew
  • 105
  • 1
0
votes
1 answer

Nginx How to redirect HTTP non-www to HTTPS www with a single redirect?

I'm redirecting incoming HTTP traffic on port 80 to HTTPS on port 443. There, I'm redirecting non-www to www: http://example.com -> https://example.com --> https://www.example.com It seems google pagespeed insights counts this as "multiple…
geochanto
  • 159
  • 1
  • 9
0
votes
3 answers

How do I point www.example.com to a.example.com?

I have a synthetic record set up pointing example.com to www.example.com and this works. I also have a CNAME pointing a.example.com to a website that hosts my images, and this works. I want www.example.com to redirect to a.example.com, while I build…
Ryan
  • 109
0
votes
0 answers

nginx certificate name mismatch error with www redirect

I'm having issues with a site that has a Let's Encrypt cert for the naked domain example.com. There is a CNAME DNS entry that points www to the A record. I want all www traffic to redirect to the non-www version and all non-:443 traffic to…
Chase
  • 111
0
votes
0 answers

Apache HSTS with non-www to www 301 redirect

Just been setting up HSTS on an Apache vHost (it is a virtualmin box) and have that working, however I am experiencing strange behavior when trying to force a call to https www rather than it redirecting to the https non www. If I call the http www…
0
votes
1 answer

Non-www not redirecting to www HTTPS Nginx

I am pretty new to nginx and have tried fixing the issue with a number of different solutions on this site and elsewhere but still can not resolve the non-www to www. The odd thing is that another server block that I have is doing it without issue.…
John K
  • 1
  • 2
0
votes
1 answer

www to non-www redirection not working on Nginx

I have the following config under my /etc/nginx/sites-available/example.com. What I need is HTTP traffic to be redirected to HTTPS, and WWW to be redirected to non-www. But for some reason WWW to non-WWW redirection is not working. Cleared browser…
geochanto
  • 159
  • 1
  • 9
0
votes
0 answers

Route certain domains through cloudflare warp and all other traffic go through the default WAN interface

I'm new to this subject. I have a ubuntu installed vps and vnc server on it. I want to use cloudflare warp only for selected domains/subdomains and all other traffic go through the default WAN interface. Trying to unblock 2 websites with it's…
0
votes
1 answer

SSL certificate not working for www subdomain on multiple domain setup

I have a LAMP server running CentOS Stream 8 and Apache 2.4.37. On this I have three domains (let's call them example.com, example.net & example.org). I have SSL certificates for each domain + the www subdomain. They share the same codebase (the…
0
votes
1 answer

Website loads slowly with www prefix, but https://[domain].com loads fine

My organization switched over to networksolutions for domain hosting, and since then I've been having issues with slow load times. When I enter the domain: https://www.martinsrestaurants.com the TTFB is very high (10+ seconds), regardless of a…
0
votes
0 answers

Two same pages www.example.com and www.example.com/index.php

Can someone help me how to fix this problem, seobility shows me that i have two same pages www.example.com and www.example.com/index.php
0
votes
0 answers

WordPress Multisite - Change Main Site from no-www to www

I've started issuing automated wildcard SSL-Certificates over the acme-dns-client. While having an easy way to cover all of my subdomains together, I'm having the issue to not have, any coverage for my no-www domain. Therefore I thought it could be…
MrLufus
  • 1
  • 2
0
votes
1 answer

What is a good practice when setting www vs. non-www server (apache)?

I have tried to configure a non-www website on Ubuntu 18.04 with Apache 2.4 and I've managed to make things work, my https://example.me works fine. But, www.example.me subdomain is also active (because I've added ServerAlias). The…
c.mtd17
  • 1
  • 1
0
votes
0 answers

www page always returns 302

We are changing our company website, old wordpress website is on old server centos/apache with ip 10.10.10.20 and the new one has different ip 10.10.10.200. The deal was to just edit dns entries, as the new website should have the same domain. The…
c.mtd17
  • 1
  • 1
1
2