Questions tagged [no-www]

The process of eliminating the usage of WWW to prefix URLs.

The process of eliminating the usage of www to prefix URLs, for instance by redirecting users from http://www.example/ to http://example/. www is by many considered a dead and unnecessary practice.

256 questions
1
vote
1 answer

Apache: Redirect all requests to https://www.domain.tld

I can not find a working solution for me. Here my settings: # Redirect non-www to www RewriteCond %{HTTP_HOST} !^www\. RewriteRule ^(.*)$ http://www.%{HTTP_HOST}/$1 [R=301,L] # Redirect http to https RewriteCond %{HTTP:X-Forwarded-Proto}…
satriani
  • 15
  • 4
1
vote
1 answer

Making Exception in Htaccess for staging site

I made a staging wordpress site (test environment)- www.staging.example.com alongside the core site -www.example.com. problem is the main site www.example.com is tied to SSL. Hence, I cant get to staging site. The Htaccess inside the main site is…
Tanvir
  • 1,642
  • 8
  • 32
  • 53
1
vote
1 answer

WP Non-www to www rewrite/redirection on AWS ELB

I was told by my IT department looking after AWS that it is not possible to redirect non-www to www domain name because of the AWS load balanced environment - and that it is not single IP I am running a wordpress site and I have tried this in the lb…
roshambo
  • 2,624
  • 6
  • 31
  • 54
1
vote
2 answers

Why is my WWW-Subdomain not showing?

I am curretly working on a project where WWW subdomain isn't resolving since I moved from my previous server and make my DNS point to the new IP address. Has it something to do with HSTS settings ? SSL certificates ? Wrong redirect format ? Wrong…
dimitri
  • 348
  • 2
  • 6
1
vote
5 answers

htaccess redirect non-www to www the full path

I would like to redirect example.com/test to www.example.com/test and example.com/contact to www.example.com/contact. So with all the routes of the web. Everything I find, what it does is redirect example.com/test to www.example.com Below is my…
Silvia
  • 11
  • 1
1
vote
0 answers

user session discrepancy across subdomains pointing to the same DNS name

I maintain a Python/Django web app where users can authenticate and log in. I've noticed that if I log into my app at example.com, I'm still logged out at www.example.com! This behavior replicates on all major browsers (Firefox, Chrome, etc). It…
Hassan Baig
  • 15,055
  • 27
  • 102
  • 205
1
vote
2 answers

.htaccess: redirect to https without www results in loop

i am trying to redirect my URLs to https. I would like to do the following: http://example.com => https://example.com http://www.example.com => https://example.com www.example.com => https://example.com example.com => https://example.com So…
user3681084
  • 259
  • 1
  • 10
1
vote
3 answers

web.config force redirect of www to non-www with https

So currently my main domain works fine, if I go to www.domain.com it redirects to https://domain.com my sub-domains are the issue. I have a wildcard SSL as well for *.domain.com if I go to www.sub.domain.com, it redirects to…
user6823397
1
vote
1 answer

http to https, www to non www and respect urls

I want to redirect http to https and www to non…
Jens Törnell
  • 23,180
  • 45
  • 124
  • 206
1
vote
1 answer

react-router redirect to index.html AND remove www from url in .htaccess

I'm building a small app in ReactJS, so all pages need to serve index.html and the JS handles the url. This works fine. But I'd also like to have .htaccess remove www from the url if it exists. I'm reading through the mod_rewrite documentation and I…
Topher
  • 31
  • 1
  • 8
1
vote
2 answers

SSL WWW failing to redirect

I am trying to redirect all requests to a secure non-www url. But my code is failing to redirect when I vist https://www. This is the only url that is not working, can anybody help me figure out why https://www does not redirect as planned? Here is…
1
vote
1 answer

htaccess redirect www to non-www without changing in address

I have this address http://name.com/category/1/news I use this code in htaccess to force open page without www. RewriteEngine On RewriteBase / RewriteCond %{HTTP_HOST} ^www\.(.*)$ [NC] RewriteRule ^(.*)$ http://%1/$1 [R=301,L] When I open…
leopoldjobs
  • 65
  • 1
  • 1
  • 8
1
vote
0 answers

WordPress site [without www] not same as site [with www]

So I've seen this similar problem on stack a few times but none of the solutions worked for me. So I have a client site that works perfectly at: imscs.com (with the WWW) But the same site will not load the content correctly (without the WWW) I…
dnp76
  • 119
  • 1
  • 7
1
vote
1 answer

Redirect all urls to non www https

I have a dedicated server (Apache+Nginx (as proxy reverse) and php-fpm , mod-rewrite is activated), I host many domains and in one specific domain I want all requests to https://domain.com. I have tried many solutions and all theme but none worked…
Mani
  • 199
  • 2
  • 12
1
vote
1 answer

Forward no-www to www including the sub-directories "/country-code"

We have a website "www.testa-omega3.com" with 3 different languages (DE, EN, NL). Our default language is Dutch (NL), which is currently the main domain. The DE and EN language are in a sub-directory: www.testa-omega3.com/de/…
Vincent
  • 13
  • 3