Changing Moodle URL

Changing Moodle URL

by John K -
Number of replies: 4
I was looking at this documentation to change my Moodle URL:
http://docs.moodle.org/en/Moodle_migration

I changed the wwwroot in the config.php and that seems to have worked perfectly. I see the section about using replace.php to update the database, but is that necessary in the latest version of Moodle? I am going from an IP address URL to a domain name URL, and it all seems to be working fine without using replace.php...
Average of ratings: -
In reply to John K

Re: Changing Moodle URL

by Steven A -
Do the IP address and URL reference the same location on the server? If so, then I'm guessing you wouldn't experience any problems because both URLs point to the correct location.

I'd still run replace.php in order to streamline things. Make sure you make a backup of your database first.
In reply to Steven A

Re: Changing Moodle URL

by John K -
same server, new folder location and a new DNS name. I am just hesitant to fix what's not broken since everything is working perfectly...
In reply to John K

Re: Changing Moodle URL

by Colin Fraser -
Picture of Documentation writers Picture of Testers
Perfection: a state of self delusion.

It is not a matter of fixing anything, consider the argument found in this FAQ, and think about how you can perhaps avoid some problems or solve them before they become an issue in your production site.
In reply to John K

Re: Changing Moodle URL

by Colin Fraser -
Picture of Documentation writers Picture of Testers
Not just your database. Seriously suggest you install a copy of your Moodle to your local computer, server and all, and us it as your test site.