Jump to content

Redirect


franc
 Share

Recommended Posts

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

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

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

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