Anyone knows on how to redirect a url?
If you have DirectoryIndex set to index.php as well as the usual index.html in Apache you put the following in your index.php file:
<?php header("Location: http://eclass.adzu.edu.ph") ?>
You need to make sure there's no output from this file.
This url redirects to http://moodle.rhino.cx
I did it this way:
In apache I made a virtual server that catches all the request that doesn't belong to another virtual server. Also I use a * record in DNS. (Try type http://whateveritisitalwaysworks.rhino.cx it works really!)
In that virtual server the index.php looks like the attached file. (I can't paste php code here, so I had to attach it.)
And the virtual server moodle.rhino.cx, run actualy the moodle installation.
I'm almost sure that there are other ways to do this, but this also works.
Hope this helps you.
Maybe Martin can give his moodle.org solution
Thanks for the reply, I works! Question: Is this compatible to all browsers?
Martin, how did you do it in moodle.org? Is it the same as said above...
Redirect / http://main.address.com/
I have installed moodle in 172.22.24.35 IP.It working properly.
My poblem is, how to redirect moodle "172.22.24.35" ip to another "172.24.35.33" ip.
I changed the moodel config.php file but that was not work.
if i entered the "172.24.35.33" ip in browser it redirect to "172.22.24.35" ip
Any one help to me.....I spent lot of days for that issue.
Here i have attached the screen short.
Kindly find it.