Page 1 of 1

Bizarre redirect

Posted: Thu Aug 18, 2016 7:29 am
by wmdvanzyl
Hi All.

I have copied a website from the live server to my staging server, but i am getting a bizarre redirect when trying to access it. I copied the website files and database and imported it at staging server. When trying to access the website at somedomain/staging/site it redirects to the original live website???

Things i have already done:
  • * Changed URL in config.php
  • * Deleted .htaccess
I want to clear the cache, but trying to access the admin panel using

Code: Select all

 somedomain/staging/site/admin 
gives a 404 and the URL reads

Code: Select all

somedomain/staging/site/install/upgrade.php
Will clearing out the tmp folder successfully clear the cache manually?

Re: Bizarre redirect

Posted: Thu Aug 18, 2016 7:37 am
by Rolf
Clear content of tmp/templates_c/ and tmp/cache/
Don't delete the folders

Grtz Rolf

Re: Bizarre redirect

Posted: Thu Aug 18, 2016 10:04 am
by wmdvanzyl
Rolf wrote:Clear content of tmp/templates_c/ and tmp/cache/
Don't delete the folders
Ok i tried that. Now i get the "Oops! Sorry, it looks like something went wrong and an error has occurred. Don’t worry, it can happen to any of us. " page.

Trying to access admin still doesn't work. :S :/ weird

Re: Bizarre redirect

Posted: Thu Aug 18, 2016 10:11 am
by Rolf
Are you sure the changed config.php file is uploaded to the server?

And is the .htaccess really removed or changed?

Re: Bizarre redirect

Posted: Thu Aug 18, 2016 10:48 am
by wmdvanzyl
Rolf wrote:Are you sure the changed config.php file is uploaded to the server?

And is the .htaccess really removed or changed?
I also suspected those two, but i can't find anything untoward. It seems the redirect i sorted out, so that must have been a caching issue.

What is the "most safe" / surefire way to bring up the admin panel? Is it

Code: Select all

domain/subdir/admin
or something else?

EDIT: I'm going to see what happens when i try to do an upgrade to 1.12. Perhaps a "nuke 'em from orbit" solution will work :P

UPDATE: Seems like that worked. Must have been something wrong with the live site. But i don't have the username or password.

What's the query string again to set admin password to 'admin' ?

I always used this, but it hink it's very old:

Code: Select all

UPDATE cms_users SET password = '21232f297a57a5a743894a0e4a801fc3' WHERE user_id = 1;

Re: Bizarre redirect

Posted: Thu Aug 18, 2016 7:29 pm
by Rolf