Jump to content

Admin page view links pointing to localhost on server


Joe
 Share

Recommended Posts

Can someone tell me how/where the links to view pages are created in the admin page overview?

I've developed a site locally and uploaded it to the server. Now the page list view links in the admin area all point to localhost/pagename/. All the rest of the links seem to be correct, both on the front end and in the admin area.

The site was developed based on the Zurb Foundation 4 Site Profile (though I don't think that this has anything to do with it). I did some customization on the back end and I thought that this is where the bug came in. To see where I have tested by successively replacing sections of the site with original out-of-the-box PW files, but so far no luck. (It is not in templates-admin/default.php, I've checked that.)

I have transferred sites from the same local server to the same hosting environment before with no problem, so that should not be the cause either.

Link to comment
Share on other sites

In your site config.php...

Remove localhost from the array here 

$config->httpHosts

But add yours like so...

$config->httpHosts = array('domain.com', 'www.domain.com'); 
//Replace domain.com with the hostname(s) your site runs from.

This is a new recommended security feature in PW2.4

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