?
Solved

Trying to resolve redirect mystery with Drupal site.

Posted on 2013-10-31
9
Medium Priority
?
502 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?
0
Comment
Question by:sandshakimi
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 4
  • 2
  • 2
  • +1
9 Comments
 
LVL 5

Expert Comment

by:talkinsmak
ID: 39613873
Have you checked your internal DNS or for the existence of a host file on the local pc?

John
0
 

Author Comment

by:sandshakimi
ID: 39613897
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
 
LVL 5

Expert Comment

by:talkinsmak
ID: 39613923
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
Get proactive database performance tuning online

At Percona’s web store you can order full Percona Database Performance Audit in minutes. Find out the health of your database, and how to improve it. Pay online with a credit card. Improve your database performance now!

 
LVL 111

Expert Comment

by:Ray Paseur
ID: 39614042
You can scan the source code for (case-insensitive) "header" since PHP might be doing the redirect.
0
 

Author Comment

by:sandshakimi
ID: 39614437
I was also thinking along those lines.

How do I approach scanning for "header" ?
0
 
LVL 111

Expert Comment

by:Ray Paseur
ID: 39614520
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
 
LVL 58

Expert Comment

by:Gary
ID: 39614536
Edit settings.php and change the $base_url
0
 

Accepted Solution

by:
sandshakimi earned 0 total points
ID: 39650654
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
 

Author Closing Comment

by:sandshakimi
ID: 39658968
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

Free Backup Tool for VMware and Hyper-V

Restore full virtual machine or individual guest files from 19 common file systems directly from the backup file. Schedule VM backups with PowerShell scripts. Set desired time, lean back and let the script to notify you via email upon completion.  

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Build an array called $myWeek which will hold the array elements Today, Yesterday and then builds up the rest of the week by the name of the day going back 1 week.   (CODE) (CODE) Then you just need to pass your date to the function. If i…
These days socially coordinated efforts have turned into a critical requirement for enterprises.
The viewer will learn how to create and use a small PHP class to apply a watermark to an image. This video shows the viewer the setup for the PHP watermark as well as important coding language. Continue to Part 2 to learn the core code used in creat…
The viewer will learn how to create a basic form using some HTML5 and PHP for later processing. Set up your basic HTML file. Open your form tag and set the method and action attributes.: (CODE) Set up your first few inputs one for the name and …
Suggested Courses

777 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question