Jump to content

httpRoot / httpHosts path


kaz
 Share

Recommended Posts

In the past, I used for the path entry
base href="<?php echo $urls->httpRoot; ?>"
entries.

In ver. 3.0.246, the result is no longer that one domain from the config is taken over. All domains of the config.php $config->httpHosts are taken over.

It looks like this, and of course it doesn't work:

base href="https://dev.my-domain.com,my-domain.com,www.my-domain.com/"

Has anything changed, what should it be like now?

Link to comment
Share on other sites

Do you have the domains in the config in an array or as a string?

That's how it should look:

$config->httpHosts = array('domain.one', 'domain.two', 'domain.three');

 

  • Like 1
Link to comment
Share on other sites

1 hour ago, zoeck said:

Do you have the domains in the config in an array or as a string?

That's how it should look:

$config->httpHosts = array('domain.one', 'domain.two', 'domain.three');

 

I have made the entries separated by commas on the installation. I see the fault in the config, the quote/s are wrong.

$config->httpHosts = array('dev.my-domain.com,my-domain.com,www.my-domain.com');

I've changed it with the editor. Thanks for the hint!

  • Like 1
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...