Moodle Plugins directory: Custom Clean URL: Versions: 1.0.0 | 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.
Custom Clean URL 1.0.0
Moodle 4.2, 4.3, 4.4, 4.5
Released: Wednesday, August 27, 2025, 11:59 PM
Code prechecks
overview
phplint
phpcs10 | 25
js0 | 12
css
phpdoc3 | 0
savepoint
thirdparty
grunt
shifter
mustache0 | 1
gherkin
HTML | XMLcustomcleanurl
customcleanurl main idea is to convert the moodle url in more user readable format and SEO friendly 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.
Installation
You can download as a zip from github then extract into your_moodle/local/customcleanurl/
Modify .htaccess file
# BEGIN_MOODLE_LOCAL_CUSTOMCLEANURL
# DO NOT EDIT LOCAL_CUSTOMCLEANURL ROUTE
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
# DO NOT EDIT LOCAL_CUSTOMCLEANURL ROUTE
# END_MOODLE_LOCAL_CUSTOMCLEANURL
Version information
- Version build number
- 2025082703
- Version release name
- 1.0.0
- Can be updated to
- 1.1.0 (2025083000), 1.1.1 (2025091200)
- Maturity
- Stable version
- MD5 Sum
- 32e29560cce9411efe02191e57c35b3d
- Supported software
- Moodle 4.2, Moodle 4.3, Moodle 4.4, Moodle 4.5
- The more recent release 1.1.0 (2025083000) exists for Moodle 4.2
- The more recent release 1.1.0 (2025083000) exists for Moodle 4.3
- The more recent release 1.1.0 (2025083000) exists for Moodle 4.4
- The more recent release 1.1.1 (2025091200) exists for Moodle 4.5
Version control information
- Version control system (VCS)
- GIT
- VCS repository URL
Default installation instructions for plugins of the type Local plugins
- Make sure you have all the required versions.
- Download and unpack the module.
- Place the folder in the "local" subdirectory.
- Visit http://yoursite.com/admin to finish the installation.