Moodle Plugins directory: Redirects | Moodle.org
Redirects
Administration tools ::: tool_redirects
Maintained by
Catalyst IT
A very simple plugin which allows admin to set redirects based on url. Redirects can be from existing Moodle pages like from one course to another, or they can be 'vanity' urls from non existing urls into a page inside Moodle.
Latest release:
306 sites
163 downloads
8 fans
Current versions available: 1
Configuration
- Navigate to Site Administration > Plugins > Admin tools > Redirects
- Add rules. Each line should be a redirect rule like [php regex of local moodle URL to redirect from]=>[any URL to redirect to]. E.g. #/my/#=>/course/view.php?id=2
- Enable or disable redirects for administrators
Setup vanity urls using Moodle Error pages
If you wish to use redirects for urls which do not exist, eg /some-vanity-url then your webserver needs to be configured to have Moodle handle error pages. Setup details are here:
https://docs.moodle.org/dev/Error_pages
Backdoor option for Admins
Admins can bypass redirect by adding noredirect=1 parameter to requested URL. E.g. http://moodle.example.com/my/?noredirect=1
Useful links
Contributors
Catalyst IT (Lead maintainer)
Please login to view contributors details and/or to contact them
Thx for the plugin
How do I redirect from the home page. I don't a url adress with a php extension .php for the home page
This is a very useful and gap-filling plugin. Are you planning to upgrade to Moodle 4.5 and 5.0?