• Resolved epowerhr

    (@epowerhr)


    In the General Settings, the site address (URL) is set to “https://epowerhr.be”. Whenever I enter the URL “www.epowerhr.be” in my browser it doesn’t redirect to “epowerhr.be”. Isn’t this handled by WordPress automatically?

    I’m currently using the Avada theme.

Viewing 4 replies - 1 through 4 (of 4 total)
  • Matt Knowles

    (@aestheticdesign)

    You need to configure that DNS setting either at your hosting account, or with your registrar. Usually it is done at the hosting account. Contact support at your hosting company and they should be able to configure that for you.

    epowerhr.be and https://www.epowerhr.be can be two completely different web sites. So if https://www.epowerhr.be is pointing somewhere else, WordPress would never get the chance to change it if it could.

    Thread Starter epowerhr

    (@epowerhr)

    Hi Matt,
    thanks for the response. Unfortunately the hosting provider doesn’t recommend to configure a forward of “www.epowerhr.be” to “epowerhr.be” because Google doesn’t like it very much.

    I’ve already put some effort in reading the codex and forum but I can’t seem to find any related topic on this.
    Thing is, the website has been set up from scratch, so it hasn’t moved to another server or something. So the site URL in my WordPress settings has been “https://epowerhr.be” since the beginning.

    Any idea where I should look? Could plugins cause this behavior?
    My main plugins are WPML, W3 total cache, WordPress SEO and WP-Optimize (amongst other smaller plugins).

    Matt Knowles

    (@aestheticdesign)

    Thread Starter epowerhr

    (@epowerhr)

    Thanks for your help Matt, it guided me in the right direction.

    Eventually I’ve ended up customizing my htaccess file. Now redirects are working nicely, even from non-SSL to SSL.

    These are the rules I’ve added at the top of my htaccess file (just in case someone else may need it…).
    RewriteEngine on
    RewriteCond %{HTTPS} off
    RewriteRule ^(.*)$ https://epowerhr.be/$1 [R,L]
    RewriteCond %{HTTP_HOST} ^www\.epowerhr\.be [NC]
    RewriteRule ^(.*)$ https://epowerhr.be/$1 [R=301,L]

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘www URL not redirecting to non-www’ is closed to new replies.