In the Home -> Administer -> Site Configuration area you can change the node for the Default front page but I need to change the URL preceding the node. I originally installed Drupal in a subdomain, as in subdomain.domain.com and I now need to change it to just be my domain name. Anyone know how to do this?

Comments

jeffamm’s picture

I figured it out for myself. The standard windows xp search utility wasn't finding the string in the folder, so I downloaded a new search utility Turbo Searcher and it found the string in the sites/default/settings.php file.

Finglor’s picture

I have the same problem and I cant find a string in settings.php is it this :
# $base_url = 'http://www.example.com'; // NO trailing slash!

Johnbmtl’s picture

The right url is in my settings.php file but the old url (with the subdomain) appears in the default front page url area.

Can anyone help with this?

Johnbmtl’s picture

Still haven't found a solution.

Can anyone help?

thebaron88’s picture

Same here to, looks like its going to need a full reinstall, grrr

itbalance’s picture

I was having the same problem, i.e. base url was correct in the settings.php file, but from the web - admin/settings/site-information, the sitename was different -- still had the previous url. I "Empty"-ed the following tables using phpMyAdmin:
cache, cache_content, cache_filter, cache_menu, cache_page, cache_views, and cache_workflow_ng. You can also do this using MySql, i.e. delete from cache; or truncate table cache;

I also removed the securepages module because it was setup under an old url and I forgot to disable it before copying the site and database. After I did this, I deleted the cache from my browser just to be sure and it worked. I hope this helps.

tracerhand’s picture

and it didn't work. i've changed baseurl to my public hostname but the site still wants to use the numeric local network IP address. this shows up when sending emails from the site, etc.

i emptied the fields itbalance suggests (the ones i have, anyway) but no dice. it seems strange to me that such a basic function, that must be used all the time - i.e. a site changes canonical hostname - isn't an option within site administration? am i missing something really obvious?

1websitedesigner’s picture

Hi,

A likely explanation is that as standard the settings.php file is write protected, therefore if you e.g. modify the file on your computer, then try to FTP it to the server, you'll find that actually the server still has the same settings.php file as it did before, as it's protected.

You therefore need to change the permissions first, then modify the settings.php file, upload it, then change the permissions again. I normally do this in cpanel on the file browser.

Hope this solves the problem for anyone else finding this page.

All the best,

Martin

http://www.1websitedesigner.com/website-design-drupal-cms

thejamesjones’s picture

Thanks, I didn't realize that I had secure pages module installed, updating that corrected this issue for me. I was moving my root to a subdomain as it was replace with an updated site.

Grondhammar’s picture

Looks like an old topic but we're having exactly this problem. The settings.php value has the correct value, the cache_* tables are empty, and it's still showing the wrong domain.

This began when I used the Backup/Restore module to copy a production site's data to a test server. It has to be a data problem because that is the single change that's happened. However, I'm completely at a loss where it might be.

Any and all hints and help very appreciated.

audster’s picture

I have my site on the shared server already, but not using a domain name to access it..

that is, the live site is static on another server at ourdomain.com

the drupal site I built to replace it is on another shared hosting server and I access it via the actual server address and our user name

the.dev.server.com/ourusername

Now that I'm ready to point the DNS to the new drupal site, I need to know what to do to have drupal recognize the actual domain www.ourdomain.com and update the links and such.

Any and all advice is appreciated!

I can't even generate the 301 redirects until this happens ... I want to use the Path Redirect module to generate the redirects but right now it shows the from and to fields prefixed with
the.dev.server.com/ourusername

help help!

dflek’s picture

Hi there,

I'm experiencing the same problem. Have tried all suggested solutions above but no joy.

Has anyone found a solution to this issue?

dbeall’s picture

I have never had a Drupal site without pathauto..

do the url aliases need to be flushed?

Are they holding bad or old aliases that just keep refilling the database.... maybe, yes, no?

edit,, seems that i have heard of someone running an sql query in phpmyadmin to change all the urls in the whole database, not just cache tables.

edit 2
haven't found the query yet,, but you could do a sql dump, find-replace the 127.0.0.0 with the http://-url-.com and import the sql file back..
the query would be easier and quicker.