Joe Posted March 28, 2014 Share Posted March 28, 2014 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 More sharing options...
kongondo Posted March 28, 2014 Share Posted March 28, 2014 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 3 Link to comment Share on other sites More sharing options...
Joe Posted March 28, 2014 Author Share Posted March 28, 2014 Thanks for the quick reply kongondo! That was the reason of course! My fault for not reading 'the manual' (again;-) Link to comment Share on other sites More sharing options...
kongondo Posted March 28, 2014 Share Posted March 28, 2014 No worries.....oh, you've given me a new name too @Teppo: I know what you are thinking...... Link to comment Share on other sites More sharing options...
Joe Posted March 28, 2014 Author Share Posted March 28, 2014 Hi kongondo, that was by mistake, the name, sorry, I fixed it (though konkondo does not sound so bad either, I think...) What might Teppo be thinking, how do you know? Link to comment Share on other sites More sharing options...
kongondo Posted March 28, 2014 Share Posted March 28, 2014 Let's just say "localhost" has bitten him once or twice before.... . It's somewhere here in the forums... Link to comment Share on other sites More sharing options...
Joe Posted March 28, 2014 Author Share Posted March 28, 2014 That thread is here https://processwire.com/talk/topic/5598-production-site-all-admin-view-links-showing-to-localhost/?hl=localhost . I just hadn´t seen it before - I don't remember now what search terms I used the first time when looking for a solution here on the forums Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now