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

Access-Control-Allow-Origin error on AWS server when website is opened through www

In browser when I am opening my website by typing only mywebsite.com,the ajax request successfully hits my rest webservice. But when I type www.mywebsite.com,then I get error as-XMLHttpRequest cannot load http://mywebsite.com/path Response to…
Rajat
  • 37
  • 11
0
votes
1 answer

nginx forward www to https

I'm using nginx if I call www..com my browser cant find anything and is not shown the page https://.com and .com is working perfectly. Here is my conf file, have tried some different configurations but they dont help to solve my problem # HTTP —…
imalik8088
  • 1,501
  • 5
  • 21
  • 39
0
votes
1 answer

htaccess quite domains not www to https://www but not subdomains to www

I've found quite examples but all of them for an especific domain, and my server has many main domains and subdomains. I want all main domains to be rewrite to https://www but the subdomains to https:// only: main-domain.xxx ->…
kikerrobles
  • 2,079
  • 3
  • 16
  • 26
0
votes
1 answer

Redirect to non www is not working for pages in https

I am trying to add redirect rules using .htaccess for such goals: Redirect all http pages to https. Redirect all www http and https pages to non www https. My .htaccess code: RewriteEngine On RewriteCond %{HTTPS} off RewriteRule (.*)…
Yuri
  • 55
  • 10
0
votes
1 answer

.htaccess non-www to www - mobile to redirect to m.website

This is what I am trying to achieve Website should always require www - Works All 404 errors should redirect to home page - Works On mobile website should redirect to m.website.com - Not working Right now on mobile website redirect to…
Shovan
  • 21
  • 4
0
votes
1 answer

WWW version of website is showing at the end of the URL [domain]index.php?p=index.html

We have a website set up using the non WWW version of the website. At the moment when you access the WWW version of the domain it seems to redirect to www.ourdomain.com/index.php?p=index.html. We are seeing the homepage template but with errors.…
Max
  • 11
  • 2
0
votes
1 answer

A Deleted file loading with a url without www in it. how to get rid of that file being accessed?

My website is loading same files with www and without www. I just deleted the file from file manager and its showing 404 which is fine but a different version of it is loading https://ospreyhomes.ae/wp-content/uploads/2015/01/logo.png (Delete but…
info
  • 25
  • 1
  • 6
0
votes
1 answer

www and non-www redirection showing different pages

I have a domain "example.com". Where I had hosted a static html site then recently I switched to wordpress. Now "www.example.com" is showing my current wordpress theme site whiel non-www "example.com" is showing the homepage of previous html…
S K
  • 98
  • 2
  • 16
0
votes
1 answer

htaccess - remove www and .html from subdomain pages

Let's say my domain is: www.site.name.jpI want to remove www and the .html from the subpages as in: www.site.name/about.html What should I do? I've been using the code bellow and, actually, it is working! But I'm a little afraid it's having a side…
0
votes
1 answer

How to configure Tomcat with multiple domains; www mapping to wrong domain

I don't know much about Tomcat but I'm trying to get it going anyway. We have a Tomcat setup which started with a single domain, but later we added another ('mysite.net'). Our server.xml looks like:
Gerry
  • 1,031
  • 1
  • 14
  • 30
0
votes
2 answers

Unable to upload htaccess in codeigniter

I am a complete beginner in Codeigniter. I am facing 2 problems I am unable to upload htaccess file If I need to upload where should I upload
Sivagopi
  • 1
  • 2
0
votes
2 answers

Is it possible to determine whether "www." was entered as part of the URL into address bar purely from PHP?

Accessing the site without "www." counterpart in browser, as in "site.com", will still echo "www.site.com" from $_SERVER['SERVER_NAME']; This might seem like not a big deal, just determine this on front-end when making your ajax calls, using…
InfiniteStack
  • 430
  • 2
  • 9
0
votes
1 answer

Own example.org and can't get www.example.org to redirect

I own http://0x3c.org/ and everything is working as it should. I am using Google Domains and have Dynamic DNS set up with them to point to the Apache server inside of my house. My issue is that http://www.0x3c.org/ does not redirect to…
0x3C
  • 5
  • 5
0
votes
2 answers

Redirect all traffic from nonwww to www and https to http

I found every combination on the net except of this one. How do I redirect all traffic in a generic way to the "http://www."? So that happens: domain.com --> http://www.domain.com www.domain.com --> http://www.domain.com https://domain.com/page -->…
getimo
  • 25
  • 3
0
votes
1 answer

AWS hosted website not working with non-www. But working fine with www

My domain is with godaddy and files are hosted on aws. website properly working with www.mydomain.abc, but giving error with mydomain.abc How can I redirect www.mydomain.abc to mydomain.abc using these redirect rules in .htaccess RewriteCond…