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

customcleanurl

customcleanurl main idea is to convert the moodle url in more user readable format and SEO friendly url.

For Example:

  1. Course View Page URL your_domain/course/view.php?id=ID => your_domain/course/course_shot_name
  2. Course Category Page URL your_domain/course/index.php?categoryid=ID => your_domain/course/category/ID/category_name
  3. Course Edit Page URL your_domain/course/edit.php?id=ID => your_domain/course/edit/course_shot_name
  4. User Profile URL your_domain/user/profile.php?id=ID => your_domain/user/profile/username
  5. 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

Version control information

Version control system (VCS)
GIT
VCS repository URL

Default installation instructions for plugins of the type Local plugins

  1. Make sure you have all the required versions.
  2. Download and unpack the module.
  3. Place the folder in the "local" subdirectory.
  4. Visit http://yoursite.com/admin to finish the installation.