After a fresh installation, edit to config.php to change hostname - page loads without styling

After a fresh installation, edit to config.php to change hostname - page loads without styling

by Point Right -
Number of replies: 1

Hi


After a fresh installation of 2.5x (latest and greatest - windows), 

I edited config.php to change hostname from localhost to mydomain.domain.com - the page loads, but loads without styling, javascript, css.

Almost as if PHP isn't running. Page loads, but loads as if it was a dumb text file.

Any idea about what may cause this?


Thank you so much in advance!

B

Average of ratings: -
In reply to Point Right

Re: After a fresh installation, edit to config.php to change hostname - page loads without styling

by Emma Richardson -
Picture of Documentation writers Picture of Particularly helpful Moodlers Picture of Plugin developers

1.  You need to run replace.php (found at yourdomain.com/admin/tool/replace/index.php) and update your database to the new url.

2.  Clear your caches.

Hopefully that should get you back up and running!