cotonti.com : Nice urls for plugins or modules https://www.cotonti.com Laatste forum onderwerpen Cotonti en Thu, 01 Jan 2026 13:26:59 -0000 tensh Thank you very much :)

]]>
Zo, 03 Nov 2013 18:27:39 -0000
Macik And don't foget `URL editor` plugin should be installed and setuped with `Custom urltrans.dat` preset.

]]>
Vr, 01 Nov 2013 12:05:00 -0000
Trustmaster 1. Create your custom datas/urltrans.dat based on plugins/urleditor/presets/handy.dat. Add these lines on top:

flowcharts	uname=*&fid=*	{$e}/{$uname}/{$fid}
flowcharts	uname=*			{$e}/{$uname}
flowcharts	fid=*			{$e}/{$fid}

2. Add these rules to your .htaccess:

RewriteRule ^flowcharts/([a-zA-Z][a-zA-Z0-9_-]*)/([0-9]+) index.php?e=flowcharts&uname=$1&fid=$2 [QSA,NC,NE,L]
RewriteRule ^flowcharts/([0-9]+) index.php?e=flowcharts&fid=$1 [QSA,NC,NE,L]
RewriteRule ^flowcharts/([a-zA-Z][a-zA-Z0-9_-]*) index.php?e=flowcharts&uname=$1 [QSA,NC,NE,L]
]]>
Wo, 30 Okt 2013 17:00:01 -0000
tensh 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 :)

]]>
Wo, 30 Okt 2013 12:21:01 -0000