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

Redirect non-www(http) and www(http) to https://www

I am trying to do a redirect from non-www(http) and www(http) to https://www but it does not work. Need the following to work. Please help http://example.com redirect to https://www.example.com http://www.example.com redirect to…
2
votes
1 answer

Missing www in my url (on cellphone) causing "This connection is not private" ASP.NET MVC

I've just published my website, and I realized missing www in my (BUT ONLY ON CELLPHONE) url causing this issue: It is interesting fact that if I type url without www on my computer or laptop website is working fine, but if I type url without www…
Roxy'Pro
  • 4,216
  • 9
  • 40
  • 102
2
votes
4 answers

force SSL and no WWW on Apache

I'm having trouble coming up with the proper syntax to accomplish both forcing the SSL and no WWW. EDIT I've been able to accomplish each task separately but when combining the two i find myself stuck in a redirection loop. working syntax to force…
Stephen S.
  • 837
  • 7
  • 16
  • 29
2
votes
1 answer

Consistent user authorization across url with/without www

I need to clarify a fundamental concept (beginner here). In a Django web app I maintain, I notice that if one logs in via going to example.com, they remain logged out on www.example.com (and can then go on to create a clone account). 1) Why does…
Hassan Baig
  • 15,055
  • 27
  • 102
  • 205
2
votes
1 answer

How to redirect from the www to the non-www version in an HTACCESS file?

I have installed the Laravel 5.2 in my Linux Server And I made it so hardly by modifying the HTACCESS file , So now I'm trying to make a redirection from the www to the non-www version I mean like stackoverflow from www.example.com >>TO>>…
Khalil Bz
  • 557
  • 1
  • 9
  • 24
2
votes
2 answers

Redirect NON-www to www for https

I've the following redirect RewriteCond %{HTTP_HOST} !^www\. RewriteRule ^(.*)$ http://www.%{HTTP_HOST}/$1 [R=301,L] RewriteCond %{HTTPS} !on RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301] How can I redirect non WWW https to…
Overnet
  • 965
  • 3
  • 12
  • 20
2
votes
1 answer

www to non-www with SSL without index.php

When I try to enter my website from url www.mypage.com I got something like http://www.mypage.com/index.php/https://mypage.com/https://www.mypage.com.... When I enter from url mypage.com I got https://mypage.com - AND ITS OK When I enter from url…
Ridd
  • 10,701
  • 3
  • 19
  • 20
2
votes
1 answer

Rewrite URL for vHost in Apache. [AllowOverride & Mod_rewrite checked]

I'm having problems to rewrite the canonical URL with www to non-www in my domain. If I try www.example.com and I allways get #404. Here is all the information about the apache2 configuration. This is all what I have…
Erusso87
  • 667
  • 1
  • 7
  • 19
2
votes
1 answer

Can I safely drop "http://" and "www" from URLs in QR codes?

I would like to encode some links for QR codes. The shorter the link the better, because a shorter URL reduces the number of dots in the QR code, which makes it a lot easier to scan. If I remove "http://www." from the start of my URLs…
Morten B
  • 45
  • 4
2
votes
1 answer

htaccess force https & www. on domain & http no www on subdomain

How do I get in htaccess to force https & www. on domain, & http no www on subdomain? The following redirects the http://sub.domain.com to https://domain.com # for main domains RewriteCond %{HTTPS} !=on [OR] RewriteCond %{HTTP_HOST} ^domain\.com$…
YesItsMe
  • 1,709
  • 16
  • 32
2
votes
0 answers

Non-www links are not redirecting to www when directly access non-www.host/request_params

I am having issues redirecting non-www to www via .htaccess. Non-www links are not redirecting to www when directly access non-www.host/request_params. For example I want to redirect examplehost.com/param1/param2 to…
2
votes
3 answers

htaccess redirect domain to https, subdomain to http and www to non-www

I’m trying to do that: Force the https for my main domain. http or https://www.domain.com -> https://domain.com http or https://domain.com -> https://domain.com But not for subdomains http or https://www.subdomain.domain.com ->…
Devilquest
  • 102
  • 3
  • 3
  • 9
2
votes
1 answer

htaccess conflicting with MediaWiki htaccess

I have the following code in my htaccess file: RewriteEngine On RewriteBase / RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule ^wiki/(.*)$ /index.php?title=$1 [PT,L,QSA] RewriteRule…
magnusl
  • 45
  • 7
2
votes
2 answers

NodeJS Redirect all non-www to www except subdomains

any idea on how i can do this in Express 3.0? As the non-www url is causing very odd problems in different areas of the website. Thanks!
Manak Kapoor
  • 962
  • 3
  • 12
  • 21
2
votes
0 answers

.htaccess rewrite www to non-www redirect problems

So I've been trying to get this redirect code to work for a few hours now and it's driving me crazy. I have the opposite direction (non-www to www) working with this code: RewriteEngine On RewriteCond %{HTTP_HOST} ^[^.]+\.[^.]+$ RewriteRule ^(.*)…
1 2
3
17 18