We help IT Professionals succeed at work.

Trying to resolve redirect mystery with Drupal site.

sandshakimi
sandshakimi asked
on
564 Views
Last Modified: 2013-11-19
I'm in the process of migrating a client site (www.clientsite.com) that is currently hosting their site with Acquia Cloud.

Acquia sent me a package (site and db file), which I installed in a local test machine.

Overall, it seemed to go smooth.

The strange thing is that when trying to get to index.php (on my local test machined) I'm immediatley redirected to the current, public site (www.clientsite.com) on Acquia's cloud.

I ruled out the .htaccess file for doing the redirect.

Where else can I search for possible hard-coded redirects?
Comment
Watch Question

Have you checked your internal DNS or for the existence of a host file on the local pc?

John

Author

Commented:
This is a new effort. My admin guy wouldn't edit the DNS (he doesn't even know the directory of my test site) and its defin. not my host file on the local pc.

I'm baffled.
I am still thinking it is DNS.  Can you do an NSlookup for www.clientsite.com and see if it is looking for the external IP of that site?

Edit:

Windows:   http://support.microsoft.com/kb/200525

Linux:  http://www.thegeekstuff.com/2012/07/nslookup-examples/

John
Most Valuable Expert 2011
Author of the Year 2014

Commented:
You can scan the source code for (case-insensitive) "header" since PHP might be doing the redirect.

Author

Commented:
I was also thinking along those lines.

How do I approach scanning for "header" ?
Most Valuable Expert 2011
Author of the Year 2014

Commented:
I use Textpad.  It has a "find in files" capability that will drill down into the directory structure looking for any string you want to search.  It also has a REGEX engine for searching. IIRC Notepad++ has a similar facility.
CERTIFIED EXPERT
Expert of the Year 2014
Top Expert 2014

Commented:
Edit settings.php and change the $base_url
This one is on us!
(Get your first solution completely free - no credit card required)
UNLOCK SOLUTION

Author

Commented:
Discovery:  the site had "secure pages" enabled in Drupal configuration. By breaking into the database and creating an admin account, I was finally able to disable it. Now it works as normal.
Unlock the solution to this question.
Join our community and discover your potential

Experts Exchange is the only place where you can interact directly with leading experts in the technology field. Become a member today and access the collective knowledge of thousands of technology experts.

*This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

OR

Please enter a first name

Please enter a last name

8+ characters (letters, numbers, and a symbol)

By clicking, you agree to the Terms of Use and Privacy Policy.