Bizarre redirect

The place to talk about things that are related to CMS Made simple, but don't fit anywhere else.
Post Reply
wmdvanzyl
Forum Members
Forum Members
Posts: 214
Joined: Fri May 06, 2011 12:48 pm

Bizarre redirect

Post 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?
User avatar
Rolf
Power Poster
Power Poster
Posts: 7825
Joined: Wed Apr 23, 2008 7:53 am
Contact:

Re: Bizarre redirect

Post by Rolf »

Clear content of tmp/templates_c/ and tmp/cache/
Don't delete the folders

Grtz Rolf
- + - + - + - + - + - + -
LATEST TUTORIAL AT CMS CAN BE SIMPLE:
Migrating Company Directory module to LISE
- + - + - + - + - + - + -
Image
wmdvanzyl
Forum Members
Forum Members
Posts: 214
Joined: Fri May 06, 2011 12:48 pm

Re: Bizarre redirect

Post 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
User avatar
Rolf
Power Poster
Power Poster
Posts: 7825
Joined: Wed Apr 23, 2008 7:53 am
Contact:

Re: Bizarre redirect

Post by Rolf »

Are you sure the changed config.php file is uploaded to the server?

And is the .htaccess really removed or changed?
- + - + - + - + - + - + -
LATEST TUTORIAL AT CMS CAN BE SIMPLE:
Migrating Company Directory module to LISE
- + - + - + - + - + - + -
Image
wmdvanzyl
Forum Members
Forum Members
Posts: 214
Joined: Fri May 06, 2011 12:48 pm

Re: Bizarre redirect

Post 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;
User avatar
Rolf
Power Poster
Power Poster
Posts: 7825
Joined: Wed Apr 23, 2008 7:53 am
Contact:

Re: Bizarre redirect

Post by Rolf »

- + - + - + - + - + - + -
LATEST TUTORIAL AT CMS CAN BE SIMPLE:
Migrating Company Directory module to LISE
- + - + - + - + - + - + -
Image
Post Reply

Return to “The Lounge”