Website completely down after canonical URL change
Permalink
In the SEO settings I changed the canonical URL from my old url "http://mydomain.com/test" to the current URL (that's been working fine) "mydomain.com" (I took out the http://, does that matter?). I admit I wasn't 100% sure what I was doing and now my website will not load at all. It's just a blank page. Any ideas on how I can fix this manually?
Yes, you need the http://
Go here
/application/config/generated_overrides/concrete.php
Look for this line
'canonical_url' => 'domainname.com',
add back http:// so looks like
'canonical_url' => 'http://domainname.com',
/application/config/generated_overrides/concrete.php
Look for this line
'canonical_url' => 'domainname.com',
add back http:// so looks like
'canonical_url' => 'http://domainname.com',
It worked! Thank you so much!
Could anyone link me to some documentation that explains the canonical URL setting? I've checked the documentation but couldn't find anything.
[edit] The reason I changed it in the first place is I'm trying to figure out why when I visit "www.mydomain.com" I'm not logged in, but when I visit "mydomain.com" I am. Is this a c5 setting or htaccess etc?
Could anyone link me to some documentation that explains the canonical URL setting? I've checked the documentation but couldn't find anything.
[edit] The reason I changed it in the first place is I'm trying to figure out why when I visit "www.mydomain.com" I'm not logged in, but when I visit "mydomain.com" I am. Is this a c5 setting or htaccess etc?