Moodle Plugins directory: Custom Clean URL | Moodle.org
Custom Clean URL
Local plugins ::: local_customcleanurl
Maintained by
Santosh Thapa Magar
Customcleanurl help to convert the moodle url in more user readable format url. It also provide the option to redirect old URL into new/next URL.
Latest release:
13 sites
24 downloads
6 fans
Custom Clean URL
Customcleanurl main idea is to convert the moodle url in more user readable format and SEO friendly url. Also provide custom url define for existing moodle url and 404 page template. It also provide the old url redirect to new/next url.
For Example:
- Course View Page URL your_domain/course/view.php?id=ID => your_domain/course/course_shot_name
- Course Category Page URL your_domain/course/index.php?categoryid=ID => your_domain/course/category/ID/category_name
- Course Edit Page URL your_domain/course/edit.php?id=ID => your_domain/course/edit/course_shot_name
- User Profile URL your_domain/user/profile.php?id=ID => your_domain/user/profile/username
- Other as defined like:
- your_domain/mod/page/view.php?id=11 => your_domain/about-us
Modify .htaccess file
Plugin require modifcation of the .htaccess file for redirect, For this we need to add the following rules:
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ /local/customcleanurl/route.php [L]
ErrorDocument 403 /local/customcleanurl/404.php
ErrorDocument 404 /local/customcleanurl/404.php
Contributors
Santosh Thapa Magar (Lead maintainer)
Please login to view contributors details and/or to contact them
Comments