Domain problem
Number of replies: 6I need help pointing my Moodle to the new domain I've bought. After buying the domain I parked it in Cpanel. The domain points to my Moodle, however, anytime I click a link within Moodle, the URL navigation bar shows my old domain, assigned by the host.
I googled the issue and learned I need to edit the config.php file--I hope that is correct--to point the platform to my new domain. Yet, I don't know how to do it.
Can I post the file content here and ask someone to help me edit it?
Thank you.
Re: Domain problem
Re: Domain problem
Re: Domain problem
Here's the confin.php file. Can anyone see what the problem is?
<?php
unset ( $CFG ) ;
$CFG->dbtype = 'mysql' ;
$CFG->dbhost = 'localhost' ;
$CFG->dbname = 'henrynet_mdle1' ;
$CFG->dbuser = 'henrynet_mdle1' ;
$CFG->dbpass = '[************'];
$CFG->dbpersist = false;
$CFG->prefix = 'mdl_';
$CFG->wwwroot = 'http://szczudlik.com/moodle' ;
$CFG->dirroot = '/home/henrynet/public_html/moodle' ;
$CFG->dataroot = '/home/henrynet/public_html/moodle/uploaddata' ;
$CFG->admin = 'admin' ;
$CFG->directorypermissions = 00777 ;
$CFG->unicodedb = true ;
require_once ( "$CFG->dirroot/lib/setup.php" ) ;
?>
Re: Domain problem
Loss of formatting and pictures is usually caused by $CFG->wwwroot being wrong, but the domain in your config file clearly exists because when I put it in a browser it finds a site. However, the site it finds is at http://www.henry.netmark.pl/moodle/, which I presume was your old site.
It may take a while until the changes made to your domain settle down, so it may just be a case of waiting till various DNS servers catch up with the change of location of your Moodle - your browser may still be being sent to the old location of your Moodle when it wants things like style sheets and pictures.
Chris
Re: Domain problem
Thank you for the comment.
Re: Domain problem
That's interesting - it may be that your browser has page information cached, and the change of location has confused it slightly. If possible try it on a computer which you didn't use to view your Moodle when it was at the previous location. If it works okay then try clearing the browser's cache on your usual computer. If it's still not right then it may be a DNS issue, in which case it may settle down over the next day or two. If not then you'll have to look at the settings in Moodle and on your webhost again.
HTH
Chris