Jump to content

Wrong link to "view page"


helmut2509
 Share

Recommended Posts

Hello,

after some months absence, I continue working on my ProcessWire project.

To my surprise I am confronted with a strange error:

the "view page" url in my live app refers to localhost (localhost/contact), whereas all other

urls (edit, new, move) refer correctly to my live app. That is the case for all pages.

Any explanation for this error?

thx, Helmut

Link to comment
Share on other sites

Please double check HTTP Hosts Whitelist settings under site/config.php. 

/**
 * Installer: HTTP Hosts Whitelist
 * 
 */
$config->httpHosts = array('example.com', 'www.example.com');

Thanks

Thanks for the right answer!

The content of the array was just 'localhost'. I replaced it with my live domain name and now it works.

However, I do not understand, why only the 'view' function was affected and but not 'edit', 'new' and move....

  • 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...