Forums / Cotonti / Development / Nice urls for plugins or modules

tensh
#38260 2013-10-30 12:21

Hello;

Let's assume I have a plugin flowcharts that has the structure:

- mywebsite.com/index.php?e=flowcharts&uname=admin  would look like  mywebsite.com/flowcharts/admin (all flowcharts of admin)
- mywebsite.com/index.php?e=flowcharts&uname=admin&fid=3  would look like  mywebsite.com/flowcharts/admin/3 (flowchart id=3 of admin)
... but also mywebsite.com/index.php?e=flowcharts&fid=3 would lead to  mywebsite.com/flowcharts/3 (flowchart id = 3)

Any help in this area to produce custom nice urls for a plugin? And how about htaccess?

When I finish, I will share the module with you :)