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
4
votes
1 answer

htaccess - get all non-www traffic redirected to the www

Can anyone suggest how I get non www traffic to redirect to the www version of a website using the htaccess file - I know I have one created in my root directory but cannot be sure what to put.. any ideas
Zabs
  • 13,852
  • 45
  • 173
  • 297
4
votes
1 answer

removing www and index.php from url in symfony

I've been searching for like 3 or 4 hours without any result(before searching I played with rules for an hour but couldn't do it) I don't know if you've noticed or no but google uses www like this when it has no subdomain it will be…
Moein
  • 184
  • 2
  • 10
4
votes
1 answer

Redirect www to non-www with cloud storage bucket static site

I have a static site hosted on google cloud storage bucket. In front of my bucket I have cloudflare dns. Storage bucket is example.com Cloudflare settings: CNAME > @ > c.storage.googleapis.com > TTL automatic Question is how to implement a redirect…
user10698660
4
votes
1 answer

Why isn't RewriteCond %{HTTPS} returning the correct value?

I am working on a Drupal site for which the client has requested that we remove the 'www.' from the URL. This is super easy and I've done it before; I simply comment out the suggested lines in the Drupal-generated .htaccess file like so: # To…
TWGerard
  • 885
  • 1
  • 10
  • 24
3
votes
2 answers

ASP.NET MVC 2 Redirect from non-www to www

I found solutions for redirecting from www to non-www but not vice versa. Is there any "simple" solution to do this? And what is the difference between www or non-www? Which one should I use? Is it only because of the shorter version? My reason for…
ilija veselica
  • 9,414
  • 39
  • 93
  • 147
3
votes
1 answer

Nginx wildcard subdomain redirect to non-www

I have a domain set up with wildcard subdomains for white label access. I'm trying to safeguard against people typing in http://www.subdomain.domain.com/ but struggling to find a solution. (I already have a rewrite in action to always use a secure…
Barnabas Kecskes
  • 1,861
  • 17
  • 24
3
votes
2 answers

WWW to NON WWW Urls (Remove WWW) using Apache (.htaccess)

I have to redirect my website from https://www.example.com/ to https://website.com/. SSL is properly installed on my server. I am using Apache and have to do this using Apache (either httpd.conf/ssl.conf or .htaccess) I have used almost all of the…
Gulfam
  • 558
  • 6
  • 27
3
votes
1 answer

HTTP to HTTPS and non-WWW to www with multiple domains

I can't find the answer anywhere for this. I have a page with multiple domains for multi-language purpose and i have a sub-domain for each so I can develop locally (dev.) Before the need of HTTPS it all worked fine redirecting from non-WWW to WWW…
José
  • 33
  • 3
3
votes
4 answers

Google App Engine Python Webapp2 301 redirect from www to non-www domain

I have an application built on gae. I use python with webapp2 framework. I need to make 301 redirect from www.my-crazy-domain.com to my-crazy.domain.com so to eliminate www and not-www doubles in search results. Does anybody have ready-to-use…
userlond
  • 3,632
  • 2
  • 36
  • 53
3
votes
2 answers

perl catalyst www to non www redirect

I have a hosting platform that hosts multiple clients' websites. It is a Catalyst app load balanced behind nginx. I would like each client to have the ability to choose whether they want to have their domain have www in front of it or no www in…
srchulo
  • 5,143
  • 4
  • 43
  • 72
2
votes
1 answer

Create a 301 redirect in .htaccess for folder to subdomain AND redirect www to non-www

I've searched everywhere and used some examples but they don't meet my specific needs, hence why I'm asking here if anyone can please help? I know the http:: below isn't correct, it's just because I can't post links here. I'd like to redirect…
P3tro
  • 139
  • 1
  • 3
  • 9
2
votes
1 answer

Canonical no-www URLs with Rails 3?

What do you think about this solution? The idea is to make the no-www version as the canonical one. So we simply strip out the 'www.' from the request url: != '' Any problems?
randomguy
  • 12,042
  • 16
  • 71
  • 101
2
votes
1 answer

WinHttp doesn't work when hostname doesn't contains www. (error 12029)

I am testing this winhttp example from http://msdn.microsoft.com/en-us/library/aa384270%28v=vs.85%29.aspx DWORD dwSize = 0; DWORD dwDownloaded = 0; LPSTR pszOutBuffer; BOOL bResults = FALSE; HINTERNET hSession = NULL, …
riviraz
  • 479
  • 1
  • 10
  • 22
2
votes
6 answers

Difference between http://example.com and http://www.example.com

I getting a exception to retrieve session value in following condition. if I open site with this link http://example.com and assign session value Page will be redirect to the another site http://example1.com. some action at…
Govind Malviya
  • 13,627
  • 17
  • 68
  • 94
2
votes
2 answers

Nginx redirect everything to www https

I want to redirect everything to https://www This is my config block where I tried redirecting non www to https but does not work. server { listen 80; server_name example.com return 301 https://www.$server_name$request_uri; } server { …
ksernow
  • 662
  • 3
  • 14
  • 33
1
2
3
17 18