Possible to have a URL alias?

Possible to have a URL alias?

by Neil Ballantyne -
Number of replies: 1
HI there,

Does anyone know a way of aliasing a URL?

I want to rename http://mymoodle/mod/resource/view.php?id=575 to something a bit more user friendly like http://mymoodle/NAMEHERE.

Any advice would be great,

thanks,

Neil


Average of ratings: -
In reply to Neil Ballantyne

Re: Possible to have a URL alias?

by Carlos Alberto Junior Spohr Poletto -
Good morning,

I think that Moodle CMS don´t have and component or plugin to make this. But, you can make an PHP script more an '.htaccess' file, make an redirect to real URL.

Sample:

www.my-moodle.org/courses/sample-curse/123

is URL alias to:

www.my-moodle.org/course/view.php?id=123

For samples an teoric content about friendly URL use Google ( smile ), search by 'friendly URL PHP'.

The concept of implementation of friendly URL´s it´s simpliest, but in Moodle, it´s hard work to implementation in an 'generic way'.

PS: Use .htaccess of Joomla CMS, it´s very good to use in friendly URL implementation.


Att. Carlos A. Junior