Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 506
  • Last Modified:

Trying to resolve redirect mystery with Drupal site.

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?
0
sandshakimi
Asked:
sandshakimi
  • 4
  • 2
  • 2
  • +1
1 Solution
 
talkinsmakCommented:
Have you checked your internal DNS or for the existence of a host file on the local pc?

John
0
 
sandshakimiAuthor 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.
0
 
talkinsmakCommented:
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
0
Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

 
Ray PaseurCommented:
You can scan the source code for (case-insensitive) "header" since PHP might be doing the redirect.
0
 
sandshakimiAuthor Commented:
I was also thinking along those lines.

How do I approach scanning for "header" ?
0
 
Ray PaseurCommented:
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.
0
 
GaryCommented:
Edit settings.php and change the $base_url
0
 
sandshakimiAuthor 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.
0
 
sandshakimiAuthor 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.
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

  • 4
  • 2
  • 2
  • +1
Tackle projects and never again get stuck behind a technical roadblock.
Join Now