cotonti.com : Custom word instead of "tags" in rewrite mode https://www.cotonti.com Последние сообщения в теме Cotonti en Fri, 05 Dec 2025 13:11:58 -0000 Trustmaster It may be removed from packages for new installs and would be shipped in a separate legacy package.

]]>
вс, 11 мар 2012 14:50:42 -0000
Eugene ok. I done.

Do you mean that plug.php (which is empty by now) - will be deleted in future releases - like 1.0?

]]>
вс, 11 мар 2012 06:51:03 -0000
Trustmaster Ah, sure, my bad. One note though: use index.php instead of plug.php, the later is being phased out in non-legacy distributions.

]]>
пт, 09 мар 2012 18:03:45 -0000
Eugene #33477 Trustmaster:

You don't need the .htaccess part, sef-urls.htaccess example serves this case easily.

Hm... Of course, I'm using sef-urls.htaccess example, but I've put line with collection before index.php:

RewriteRule ^collection/(.*)  plug.php?e=tags&a=pages&t=$1 [QSA,NC,NE,L]

# All the rest goes through standard rewrite gateway
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^([^?]+) index.php?rwr=$1 [QSA,NC,NE,L]

How otherwise, I can reach collection URL? Index.php cannot see it as a plug (tags.php) and is not rewrite it by default...
 What's wrong - in my case???

]]>
пт, 09 мар 2012 16:59:50 -0000
Trustmaster You don't need the .htaccess part, sef-urls.htaccess example serves this case easily.

]]>
чт, 08 мар 2012 17:16:20 -0000
Eugene Awesome!

thanks a lot! )

it works well, but I missed .htaccess part also. As I understood I have to add a string there - like this:

RewriteRule ^collection/(.*)  plug.php?e=tags&a=pages&t=$1 [QSA,NC,NE,L]

]]>
вт, 06 мар 2012 11:14:03 -0000
Trustmaster You could copy plugins/urleditor/presets/handy.dat to datas/urltrans.dat and modify that bit there, then switch from Handy preset to Custom.

plug	e=tags&a=pages&t=*		collection/{$t}{!$a}{!$e}
plug	e=tags&a=*&t=*			collection/{$a}/{$t}{!$e}
plug	e=*						collection{!$e}
]]>
вт, 06 мар 2012 06:38:34 -0000
Eugene How I can change word "tags" in links:

website.me/tags/some-tag -> website.me/collection/some-tag

What is right way from Cot point of view? Do I need to plug into the hook urleditor.rewrite.first or something like that?

]]>
пн, 05 мар 2012 20:10:11 -0000