Greetings. When I use my indexhtml as my moodle front page and then (via a button) go to my indexphp (moodle) I login and it takes me back to my indexhtml page... a vicious cycle.
I'm using 1.9.
Thanks in advance for you help! Dan
Greetings. When I use my indexhtml as my moodle front page and then (via a button) go to my indexphp (moodle) I login and it takes me back to my indexhtml page... a vicious cycle.
I'm using 1.9.
Thanks in advance for you help! Dan
A bit more info would be helpful...
I want to use a regular html page as my first page. Using a button from my first page, I would like the visitor to be able to go to the moodle front page. I can get the front page to open the moodle front page, however after I login, it redirects me back to my html first page.
By default, always prevails .html before .php
Perhaps the code can be changed, but my simple solution:
There is an option in Administration (Sorry I use the Spanish version):mymoodleredirect
With this option you force users to login to yourmoodle.com/my
Best Regards.
Defined in apache conf, index.html is servered first, then index.php.
# DirectoryIndex: sets the file that Apache will serve if a directory
# is requested.
#
# The index.html.var file (a type-map) is used to deliver content-
# negotiated documents. The MultiViews Option can be used for the
# same purpose, but it is much slower.
#
DirectoryIndex index.html
Evidently, the login to Moodle re-directs to / after logging on which is why you get infinite loop.
Suggest, to make this work, without having to do tweaking/hacking, etc. to anything, moodle be moved to a folder of it's own rather than being scattered over web root. So at the web root (as an example on a CentOS server: webroot = /var/www/html/) there would be only an index.html page and the moodle folder.
This also gives one an advantage in installing other apps in their respective folders which could be interfaced with Moodle ... as examples, Mahara or Joomla with JFusion or a Word Press blog.
Others might offer a different (more complicated?) approach ... me, I like 'simple' and 'standard'! ;)
'spirit of sharing', Ken