franc Posted October 14, 2015 Share Posted October 14, 2015 We copied a processwire instalation (website) to another directory on the same server to create a new PW website: from /site2014 to /site2016 The strange thing is that when we access: /site2016 we get redirected to /site2014/home Everything is ok if we use /site2016/home (doesn't redirect). I've already checked all ocurrences of "site2014" in /site2016 and changed everything accordingly but the redirect remains... Also checked the .htaccess file and there's no refence to /site2014... Any feedback welcome. Link to comment Share on other sites More sharing options...
LostKobrakai Posted October 14, 2015 Share Posted October 14, 2015 ProcessWire doesn't hardcode any folders or any location information. It's all working relatively to the root folder. Did you use any $session->redirects before copying the folder? When used without a second argument, it would create a permanent redirect, which your browser would memorize and not even try to access the url before redirecting. Link to comment Share on other sites More sharing options...
franc Posted October 15, 2015 Author Share Posted October 15, 2015 Thanks for your fast answer LostKobrakai but i found the problem: There's an index.html file written by ProCache module in /site2016/site/assets/ProCache-xxxxxxxx with this: document.location.href="http://www.xxxxxx.org/site2014/home/"; that got copied from previous installation. Just changed this to: document.location.href="http://www.xxxxxx.org/site2016/home/"; and everything is ok now! 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