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

Force www redirects to home page, htaccess errors

I have a product page that loads fine when I type in the www with the URL (www.domain.com/product), but when I don’t, it redirects to the home page(domain.com/product -> www.domain.com). I'm using Magento. I’ve been searching and tried the htaccess…
Miles Pfefferle
  • 1,187
  • 6
  • 20
  • 36
1
vote
1 answer

Rails/Passenger/Apache2: Redirect from www.domain.com to domain.com

I'm hosting a domain with both addresses www.domain.com and domain.com through an "alias" directive specified in the VirtualHost config file: ServerName domain.com ServerAlias www.domain.com DocumentRoot…
Darme
  • 6,984
  • 5
  • 37
  • 52
1
vote
0 answers

WordPress Multisite subpages of Main Site redirect to Front Page when accessed with non www

I already checked quite a few different threads here, but I wasn't able to find a solution there. I'm running a WordPress Multisite and there is a problem with the following redirects: https://example.com/site1 -> Redirects to font page…
Karina
  • 11
  • 2
1
vote
3 answers

.htaccess redirect www to non-www but not doing anything

If I go to https://example.com, then everything is working fine. However if I go to https://www.example.com, then none of my static files load because it says that it goes against the CSP. Thus, I'm trying to redirect all www requests to…
jag6
  • 35
  • 8
1
vote
0 answers

Xbap Application behavior change with or without "www"

We are writing and running a xbap application. We use URL parameters to change the application's behaviour when the user logs in. To do that we use System.Deployment.Application.ApplicationDeployment.CurrentDeployment.ActivationUri.Query to get the…
Nate
  • 41
  • 2
1
vote
1 answer

404 not found when not typing www

I'm getting a 404 when typing my domain in the address bar without www in front of it. Only Safari on a Mac seems to work fine, but Chrome and Firefox get a 404 not found. Why is that, and how to I change it? domain.nl works in Safari but returns…
Al John
  • 612
  • 5
  • 24
1
vote
1 answer

apache2 www to non-www redirection not working

After trying many different combinations to redirect my shopware6 installation on a server with apache2, I am not able to make the www to non-www redirection work. Here's my conf file : ServerName…
Umar Zahid
  • 323
  • 1
  • 13
1
vote
0 answers

.htaccess in subdirectory | Redirect to www from non-www

I'm trying to redirect https://subdomain.example.com/mywebspace to https://www.subdomain.example.com/mywebspace Unfortunately, I only have control over the contents in /mywebspace. I tried to place the following .htaccess file there (which is…
trailbat
  • 11
  • 1
1
vote
1 answer

How to resolve www issue in base url from ngnix.conf file

My ngnix.conf file is as shown below.. I am trying to hit www.example.com in browser, then the url is getting hit is like https://www.www.example.com// and this gives me en error. Also the url https://example.com is not working. server { …
1
vote
1 answer

Remove www. in directory only

I'm trying to remove the www. for a single directory called dir (for example). I need to be able to do this from the .htaccess file in that directory. (I don't have root access.) Any idea how to make this work? RewriteEngine On RewriteCond…
ryanve
  • 50,076
  • 30
  • 102
  • 137
1
vote
1 answer

Redirect https ip to domain in htaccess in shared hosting

Google has indexed my website IP address with ssl and because I use ssl on my website I get error "error Your connection is not private". I know there are a lot of question on stackoverflow like this one. Edited: Fist of all I thought this code…
Sarah
  • 69
  • 1
  • 9
1
vote
1 answer

when use www in my url getting 403 error in aspnet core

I have a website on vps and set https on it. but when users open site with www, get error 403 - Forbidden: Access is denied. I want when users open www.tavanyar.ir website goes redirect to https://tavanyar.ir please help me to set my web.config
8611670474
  • 344
  • 1
  • 3
  • 12
1
vote
0 answers

Why is the www version of website not working properly?

I'm facing a problem with the following website: https://www.rhythmandstrums.ie/ When I open the "www" version of it: https://www.rhythmandstrums.ie/ I get a bugged website, failing to open stylesheets and possibly other file sources, whereas if I…
DisplayName
  • 125
  • 1
  • 16
1
vote
0 answers

In my Live project I've been trying to force the non-www URL to www URL

It has no error directing to https but it doesn't work in directing the non-www to www. Here I've given my .htaccess file for your reference. RewriteEngine On RewriteCond %{HTTPS} on RewriteCond %{HTTP_HOST} !^www\.(.*)$ [NC] RewriteRule ^(.*)$…
1
vote
1 answer

How to prevent homepage 301 chains?

I'm trying to make all versions of homepage URLs 301 to same place, without a 301. It's difficult to show the problem because I don't have enough rep points to post image or show the http response codes in a chart (too many links!) But, using the…
Jed
  • 21
  • 2