I just inherited a site from another person who was hosting it on her server. She sent me a zip file, which I put on my server and I got it up and running. However, when I click on any link, the URL changes to her server. I commented out the base URL in the settings.php file and uploaded it. Here's what that looks like:
* It is not allowed to have a trailing slash; Drupal will add it
* for you.
*/
//$base_url = 'http://www.tarulloconstruction.com'; // NO trailing slash!
If you go to http://www.tarulloconstruction.com, you're on my server. But then click on any link and it sends you to http://tarulloconstruction.testing-zone.net/...
Where is the setting that I would get rid of this testing-zone.net business?
Thank you.
Comments
Search your code
The settings file is the primary place to overide your base URL. They may have hard-coded these URLs with the other domain though. Go to Administration >> Build >> Menu to look at your menu links.
Otherwise use a search tool like Rapid Search and Replace (http://www.inforapid.com/html/searchreplace.htm) to find the testing domain in your code somewhere.
--
Nathan Rambeck
Rambeck Group
--
Nathan Rambeck
not an option
Thanks, but Build isn't an option. I just logged in and I see:
create content
New Image
New Page
New Page w/ Tools
Non-Editable Page
page
my account
administer
access control
blocks
categories
content
image galleries
input formats
logs
menus
modules
settings
content types
flexinode
image
image_gallery
img_assist
menus <<--- It's not here, either.
page_title
pathauto
posts
tinymce
users
themes
url aliases
users
log out
Menus
I think the original poster was abbreviating the navigation. As you select menus in your list (above) you'll see that the url is http://yoursitename.com/admin/build/menu .
The menu page will have a collection of links on it. Find one that is in your menu structure which navigates to the test site and press edit. You should be presented with the details for that menu option. The URL will be in the path text box.
Looks like you are using
Looks like you are using Drupal 4.7 or earlier so you would goto http://yoursite.com/admin/menu. If you have questions in the future be sure to mention that you are working with Drupal 4.7.
Looks like that is not the problem though since someone pointed out that your
<base>tag is set for your page. You'll want to check the page template in your /themes folder.Again, your best (fastest) option is to use a search tool to search through your entire code base.
--
Nathan Rambeck
Rambeck Group
--
Nathan Rambeck
Just an observation
For what it's worth...
You ARE showing a "<base />" tag in your page header (view page source), so SOMETHING needs to set that, somewhere.
Stumbled across this comment at http://drupal.org/node/58106#comment-186500 (related to changes in "base_url" usage from v4.6 to v4.7), and wondered if it is something that may have been implemented here. Since your site shows modules like "flexinode," it may have gone through some upgrades, and possibly some "make-do" changes.
Interested in what the actual issue and solution is; something that I may have to go through myself, someday.
problem solved
The problem was two-fold:
1. I have no clue what I'm doing in drupal (as evidenced by my claiming this is version 5.x, when I guess it is 4.7)
2. As most of you mentioned, the base URL was being set elsewhere. The person I inherited it from put it in the page.tpl.php file. I just deleted that line from the file and all is better now.
Thank you to all who responded.
Patrick