All pages redirect to home page when www is in URL. (Canonical Domain?)

Permalink
Hi,

I've noticed that pages in our website behave differently, depending on whether we use www or non-www in the URL.

For example...
If a user types "http://mysite.com/aboutus" the About Us page will load correctly. However, if a user types "http://www.mysite.com/aboutus" it will direct users back to our home page. This happens site-wide on all of our webpages.

What causes this? And how do I fix it? We want all pages to load regardless of whether it's a www or non-www link.

I've read some articles that talk about "canonical domain" and "301 redirect", however this is a bit more advanced for me, particularly as a new Concrete5 user.

I've also seen SEO info about the "<script type="application/ld+json">" tag and I noticed that this is in the Header Extra Content field on our home page. Under this tag, there is a line:

"url": "http://mysite.com/",

Is it as simple as adding the www to this part of the code? Will anything go wrong? Any draw backs?

Appreciate the help.

 
simonaruxandacretu replied on at Permalink Reply
Hi there,
I see no one posted any answers to your questions.
I wanted to apply a similar change to my website, and I was wondering about possible undesired consequences.
I surely don't want to have all pages directed to the home page.
Did you by any chance come across any solutions to this matter?
If so, could you share?
Thank you!
Simona