<p>This sounds more like a web server configuration or DNS issue. Does your www record resolve to the same IP address, and is the same VirtualHost (or equivalent) being used for both addresses?</p>
<p>If that's all checking out, the next thing to check is if it's a http vs https thing - I know that sounds trivial but not noticing the flip has caught me out so many times!</p>

CC BY-SA 4.0
2021-09-09T15:43:01.963Z
You Sir, are a champion. Dbl-chcked the DNS and sure as <xxxxx> the www and non-www are pointing to different IP addresses .
John Sourcer
CC BY-SA 4.0
2021-09-09T15:31:57.297Z
2021-09-09T15:31:57.297Z
Wallace
<p>I have a strange issue on my installation.</p>
<p>It works fine as <a href="http://www.domain.com" rel="nofollow noreferrer">www.domain.com</a> but if I redirect to non-www in the .htaccess, it redirects but gives me 'Connection Refused'. the same happens if I go to <a href="http://domain.com" rel="nofollow noreferrer">http://domain.com</a>.</p>
<p>Any idea's what could cause this? The URL in the config/general.php is <a href="http://www.domain.com" rel="nofollow noreferrer">http://www.domain.com</a>. Could this be the cause?</p>
<p>Regards</p>

<config>
Non-www connection refused issue
# Non-www connection refused issue

(Asked by: username_0 on 2021-09-09)

I have a strange issue on my installation.

It works fine as [www.domain.com](http://www.domain.com) but if I redirect to non-www in the .htaccess, it redirects but gives me 'Connection Refused'. the same happens if I go to <http://domain.com>.

Any idea's what could cause this? The URL in the config/general.php is <http://www.domain.com>. Could this be the cause?

Regards

**Tags:** config


---

## 1 answers

### Answer by username_1 on 2021-09-09. Score: 0 | Accepted answer

This sounds more like a web server configuration or DNS issue. Does your www record resolve to the same IP address, and is the same VirtualHost (or equivalent) being used for both addresses?

If that's all checking out, the next thing to check is if it's a http vs https thing - I know that sounds trivial but not noticing the flip has caught me out so many times!

> **Comments:**
> **username_0**: You Sir, are a champion. Dbl-chcked the DNS and sure as <xxxxx> the www and non-www are pointing to different IP addresses .  

---

