Redirecting the domain with the cpanel

Re: Redirecting the domain with the cpanel

by Rick Jerz -
Number of replies: 1
Picture of Particularly helpful Moodlers Picture of Testers

To follow up on what Howard has said, I think that you have two lines in config,php to worry about.

$CFG->wwwroot   = 'https://www.rjerz.com/moodle';

The above line for you should be 'https://myawesomemoodlesite.com"

$CFG->dataroot  = '/home/your_user/moodledata3';

This line should probably stay at where it is.

In my lines, you will still need to adjust these for your particular server and moodle installation.  Don't take my lines literally.  For example, I have named my moodledata folder moodledata3.  Yours might be different.

Had your moodle been working before you tried moving it to a subdomain?

Average of ratings: Useful (1)
In reply to Rick Jerz

Re: Redirecting the domain with the cpanel

by Lionel A. Richemond -
I would like to thank you both Howard and Rick !!!

I could make the redirection.
I used your advices and plus I had to modify the routes to the files and the fonts

Thank you so much !!

Mission accomplished