Hi, I've installed Moodle 3.2 & currently have the domain name https://learnni.org
How do I go about changing this to https://www.learnni.org ?
Many thanks
Martin
Hi, I've installed Moodle 3.2 & currently have the domain name https://learnni.org
How do I go about changing this to https://www.learnni.org ?
Many thanks
Martin
Research rewrite rule ... that would accept https://TLD and autoforward/translate to https://www.TLD.
Depending upon platform, this might help:
https://devops.profitbricks.com/tutorials/install-and-configure-mod_rewrite-for-apache-on-centos-7/
OR
use Moodle's search and replace tool found at https://site/admin/tool/replace/
OR
The long way ... make a mysql dump to .sql. Edit the SQL search for https://current replace with https://desired. Import the edited sql into a DB for the Moodle.
With 2 and 3, backups of Moodle will retain that change. With re-write, if the site moves to another hoster then one might have to re-create that re-write rule.
'spirit of sharing', Ken
Many thanks Ken.
I can't seem to get the domain https://site/admin/tool/replace/ to work.
Is it still current/active?
Best regards,
Martin
it's been in the same place for many versions of Moodle including 3.3.
drwxr-xr-x 6 ktask staff 204 Aug 8 2012 ./moodle23/admin/tool/replace/
drwxr-xr-x 7 ktask staff 238 Oct 5 2014 ./moodle27/admin/tool/replace/
drwxr-xr-x 7 ktask staff 238 Nov 10 2014 ./moodle28/admin/tool/replace/
drwxr-xr-x 8 ktask staff 272 Nov 14 2016 ./moodle29/admin/tool/replace/
drwxr-xr-x 8 ktask staff 272 Jul 31 2016 ./moodle30/admin/tool/replace/
drwxr-xr-x 8 ktask staff 272 Jun 14 2016 ./moodle31/admin/tool/replace/
drwxr-xr-x 8 ktask staff 272 Dec 6 2016 ./moodle32/admin/tool/replace/
drwxr-xr-x 8 ktask staff 272 May 18 05:45 ./moodle33/admin/tool/replace/
Try this on your site ... https://site/admin/tool/replace/index.php
IF you get file not found error then I can only conclude you've missing files. How that happened I couldn't begin to guess.
Also, one would need to change the wwwroot variable in config.php to match the URL desired - uhhhh, didn't menton that, did I? Sorry bout that!
'spirit of sharing', Ken
Hi Ken,
many thanks for taking the trouble to engage with me.
I think this may all be a bit beyond me.
I've been entering the URL you gave me (https://site/admin/tool/replace/index.php) into my browser but it just comes up saying 'This site can't be reached'
Have I msunderstood you?
Martin
Where it says site you have to replace it with your sitename: https://site/admin/tool/replace/index.php
Ah, that would explain it
Thanks Mary