how to change a courses URL after its .domain/ name

how to change a courses URL after its .domain/ name

by Andrew McNamara -
Number of replies: 2

I am new to Moodle, and couldn't clearly find this question on the forums.

I have a moodle website of (for example) www.abc.domain/course/modedit.php?update=709&return=1

I have several different courses on my domain, but all of their URLs have these long parts after the domain name.

How do I change each specific course's URL to be simply like  www.abc.domain/topic1       www.abc.domain/topic2    etc   ?

Average of ratings: -
In reply to Andrew McNamara

Re: how to change a courses URL after its .domain/ name

by Gareth J Barnard -
Picture of Core developers Picture of Particularly helpful Moodlers Picture of Plugin developers
You can't within Moodle itself.  In theory possibly with URL re-writes on the web server.
In reply to Andrew McNamara

Re: how to change a courses URL after its .domain/ name

by Rick Jerz -
Picture of Particularly helpful Moodlers Picture of Testers
I am not an expert in web design, but I'll provide some thoughts.

In the URL, "course" doesn't identify any particular course. It is just a folder on the web server. It's what follows the "course/" that identifies a course, and that query code is necessary as the URL interacts with the database. Although you would like to see "topic1," "topic2," etc., I believe that this would be a very inefficient approach to designing a LMS. As Gareth points out, in theory you might be able to do this, but my guess is that it would take too much work and not be worth any perceived gain.

If you ever reference the course, such as "Go to Andrew's Post," you can build the specific URL into any set of words, as I have just demonstrated.  So, more specifically, for your example, you could say, "Go to topic1," which would have a link to "www.abc.domain/course/modedit.php?update=709&return=1".