Sorry if the title isn't descriptive of what I want to do.
I have (and have always had) moodle in its own directory (public_html/moodle).
This makes the domain:
http://domain.com/moodle/
I want to have the domain be just:
http://domain.com/
...but I still want all core files to be in their own directory (public_html/moodle) and not at the root level (public_html).
For Wordpress, this is simple to do: move index.php and .htaccess from the wordpress folder back to the root directory. Then open the index.php file and change require('./wp-blog-header.php'); to require('./wordpress/wp-blog-header.php');
Is a similar option available to moodle?
Hi Steven,
You could try creating an SSI index.shtml page with this one line placed in the body of the page, and upload to your root directory...
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" dir="ltr" lang="en" xml:lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Moodle</title>
</head>
<body>
<!--#include virtual="/moodle/index.php" -->
</body>
</html>
It's similar to putting Moodle in a frame.
Mary
You could try creating an SSI index.shtml page with this one line placed in the body of the page, and upload to your root directory...
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" dir="ltr" lang="en" xml:lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Moodle</title>
</head>
<body>
<!--#include virtual="/moodle/index.php" -->
</body>
</html>
It's similar to putting Moodle in a frame.
Mary
Hi Steven,
You could set up a re-direct in the .htaccess file (located in the public_html directory), as described in this post: http://moodle.org/mod/forum/discuss.php?d=113576#p498835
Muyi
You could set up a re-direct in the .htaccess file (located in the public_html directory), as described in this post: http://moodle.org/mod/forum/discuss.php?d=113576#p498835
Muyi