Problem entering the web with or without “www” in OJS 3.3.0-11
The URL of my OJS installation only allows viewing of the journal content when “www” is not included in the URL
https://rduss.cl (works perfect)
But when I add “www” https://www.rduss.cl it gives an error message: 400 Bad Request
The digital certificate (SSL) is correct and includes the domain rduss.cl with and without “www”.
In other journal urls with previous OJS versions that we have (3.3.0-8, 3.3.0-7) everything is perfect (it allows using URLs with and without “www” but with version 3.3.0-11 the problem appears.
As a workaround edit the OJS system configuration file (config.inc.php) by adding “www” in allowed_hosts:
; allowed_hosts = ‘[“myjournal.tld”, “anotherjournal.tld”, “mylibrary.tld”]’
allowed_hosts = “["www.rduss.cl"]”
Is there a way for OJS 3.3.0-11 that will allow me to access the OJS website with or without “www”?
What is the cause of this error?
I appreciate any help