How to transfer moodle from www.abc.com/moodle to www.abc.com

How to transfer moodle from www.abc.com/moodle to www.abc.com

by vikas deoarshi -
Number of replies: 7
hi frnds . I have followed manual on the moodle site to install moodle . But i have installed ii in www.abc.com/moodle but i want something like www.abc.com . How to do it . do i have to reinstall moodle . Plz help
Average of ratings: -
In reply to vikas deoarshi

Re: How to transfer moodle from www.abc.com/moodle to www.abc.com

by Radik Kalakay -
Hello,
simply move all files to root of "www.abc.com" and edit configuration file - config.php (change $CFG->wwwroot, $CFG->dirroot, $CFG->dataroot if needed)
Rado

In reply to vikas deoarshi

This forum post has been removed

The content of this forum post has been removed and can no longer be accessed.
In reply to vikas deoarshi

Re: How to transfer moodle from www.abc.com/moodle to www.abc.com

by paul rayner -

why not just use a redirect and leave files where they are?

Create an index file - that only contains the following:

<meta http-equiv="refresh" content="0;url=http://www.abc.com/moodle" />


Good luck

basil


In reply to vikas deoarshi

Re: How to transfer moodle from www.abc.com/moodle to www.abc.com

by Manish Verma -
Besides the redirection and files migration methods there is a method that is used by moodle.org as well I believe, which is to make some simple changes in apache configuration. I remember seeing Martin's post about it in another thread and you should hopefully be able to find it using forum search.
In reply to Manish Verma

Re: How to transfer moodle from www.abc.com/moodle to www.abc.com

by Richard Enison -
VD, MV, and whoever else is interested,

That's the method I was going to suggest. I don't know about Martin's post, or whether you (MV) meant Martin L. or Martin D., all I know is
  1. If you (VD) are using Apache, and
  2. you are using your own server so you have access to httpd.conf, then
  3. all you have to do is change the DocumentRoot directive to point to the moodle directory (folder) instead of its parent. That, of course, requires a corresponding change to wwwroot and dirroot in config.php as RK mentioned, as well as the replace.php utility AH mentioned.
RLE

EDIT: P.S. abc.com is the Internet domain of the major, major, major radio and TV network ABC, so unless you are with them, that's not a good example domain. smile