I can’t access my website from my business campus. The DNS records are set up correctly, but the IT company my company uses is saying that I have www directing to the non-www domain.

I checked .htaccess and the domain.conf file but I don’t see anything that looks like it could cause any redirects or rewrites…

Any suggestions?

It’s a wordpress site running on Lamp Stack.

Thanks!

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

×
1 answer

Hi there @echilders,

The www to non-www redirect should not really prevent the website from loading, as long as you have DNS records for both your www and the non-www versions of your domain name.

I would recommend asking the IT company to provide you with the exact error that they get and possibly a screenshot. I would recommend asking them to run a traceroute as well to see if the connection is getting to the server.

Regarding the redirect itself, it is probably because of your WordPress Site and home URLs. Via your WordPress admin, you can change the site and the home URLs to the preferred version.

Regards,
Bobby

  • Thanks @bobbyiliev! I’ll have them do that. the wordpress site url and home URL are both https://mysite.com. Should they be in a different format? Should it have www before it?

    • Hi there @echilders,

      No problem at all, let me know how it goes!

      Regarding the www vs. the non-www, I would say that it is a matter of personal preference. For example, I have all of my sites redirecting from www to non-www but it is totally alright to have it the other way around.

      Hope that this helps!
      Regards,
      Bobby

Submit an Answer