<?xml version='1.0' encoding='UTF-8'?>
<rss version='2.0'>
	<channel>
		<title>cotonti.com : Handy Urleditor</title>
		<link>https://www.cotonti.com</link>
		<description>Останні повідомлення в темі</description>
		<generator>Cotonti</generator>
		<language>en</language>
		<pubDate>Fri, 17 Apr 2026 13:52:07 -0000</pubDate>

		<item>
			<title>Macik</title>
			<description><![CDATA[<p>
	Ok. Thanks. The first time I just missed «new rule» link in web UI of urleditor.</p>
<p><strong>Добавлено 5 часов спустя:</strong></p><p>
	«urltrans» work quite well for my case. It's hardcoded as an array in my plug, so I inject it in $cot_urltrans right in the code.</p>
<pre class="brush:php;">
	$my_urltrans[] = array(
		'params' =&gt; cot_parse_str('mode=catalog&amp;gfx=1'),
		'trans' =&gt; '{!$mode}{$_area}/{$c}/{$s}/{$typ}/{$vp}+{$year}+{$month}/graphics/{$mg}/{$bt}/'
	);
// and so on

$cot_urltrans['myplug'] = $my_urltrans;
</pre>
<p>
	But had another inconvenient thing. As I use shorthand style of call «cot_url», like <span class="code">cot_url('myplug', 'mode=catalog'); // other parameters added automatically from global scope as noted in urltrans</span></p>
<p>
	So I trapped myself to cot_url_custom. If urleditor not installed - my code will not work.</p>
<p>
	And anyway I must write a cot_url wrapper to autimatically send all long chain of parameters to cot_url().</p>
]]></description>
			<pubDate>Пт, 06 Лип 2012 16:27:57 -0000</pubDate>
			<link><![CDATA[https://www.cotonti.com/ua/forums?m=posts&q=6987&d=0#post34893]]></link>
		</item>
		<item>
			<title>Trustmaster</title>
			<description><![CDATA[<p>
	Both are acceptable. I personally prefer editing urltrans.dat directly because it is faster. But be careful with tabs and spaces, it is quite sensitive to that.</p>
]]></description>
			<pubDate>Пт, 06 Лип 2012 15:56:50 -0000</pubDate>
			<link><![CDATA[https://www.cotonti.com/ua/forums?m=posts&q=6987&d=0#post34888]]></link>
		</item>
		<item>
			<title>Macik</title>
			<description><![CDATA[<p>
	Yes, in case of high load the hook is not best solution. But cot_url_custom already a complicated function itself. How you suppose to use callback function? </p>
<p>
	Any way there should be a clear solution to extend «handly url» composing. I mean «i18n» block hardcoded in cot_url_custom is not pure style.</p>
<p><strong>Добавлено 1 день спустя:</strong></p><p>
	I think I can solve my needs with custom urltrans. So question is: can I add custom url rules to «urltrans.dat» via web form or must editing file direct in filesystem? </p>
]]></description>
			<pubDate>Ср, 04 Лип 2012 23:49:18 -0000</pubDate>
			<link><![CDATA[https://www.cotonti.com/ua/forums?m=posts&q=6987&d=0#post34862]]></link>
		</item>
		<item>
			<title>Trustmaster</title>
			<description><![CDATA[<p>
	The problem is: cot_url() / cot_url_custom() is called 100-500 times per request. Adding a hook to it would make the whole site slower. Another solution would be using a set of callback functions. But both should be tested with a PHP profiler.</p>
]]></description>
			<pubDate>Ср, 04 Лип 2012 07:47:57 -0000</pubDate>
			<link><![CDATA[https://www.cotonti.com/ua/forums?m=posts&q=6987&d=0#post34852]]></link>
		</item>
		<item>
			<title>Macik</title>
			<description><![CDATA[<p>
	 </p>
<p>
	In my case (already using Handly preset of URL editor) I can't do this as «PHP does not support function overloading, nor is it possible to undefine or redefine previously-declared functions».</p>
<p>
	Some kind of a solution may be adding a hook to <strong><span style="color:rgb(178,34,34);">cot_url_custom</span> </strong>(from URLEditor) as we have in <strong><span style="color:rgb(178,34,34);">cot_apply_rwr()</span></strong><span style="color:rgb(178,34,34);"> </span>for adding costom rules to it.</p>
]]></description>
			<pubDate>Вт, 03 Лип 2012 20:16:13 -0000</pubDate>
			<link><![CDATA[https://www.cotonti.com/ua/forums?m=posts&q=6987&d=0#post34845]]></link>
		</item>
		<item>
			<title>Trustmaster</title>
			<description><![CDATA[<p>
	The only way currently available is defining your own cot_url_custom() function. Better solution proposals are welcome.</p>
]]></description>
			<pubDate>Вт, 03 Лип 2012 18:41:45 -0000</pubDate>
			<link><![CDATA[https://www.cotonti.com/ua/forums?m=posts&q=6987&d=0#post34844]]></link>
		</item>
		<item>
			<title>Macik</title>
			<description><![CDATA[<p>
	Another one question:</p>
<p>
	My plugin uses complicated url like:  lang/plugname/subcat/type/product/params/mode/</p>
<p>
	I can use <span style="background-color:rgb(255,255,255);color:rgb(0,130,0);font-family:Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace;font-size:13px;line-height:14px;text-align:left;">Hooks=urleditor.rewrite.first </span>to handle it and transform to actual parameters. But is there any way to compose url with my rules like <span style="color:#b22222;"><strong>cot_url</strong></span> does (by hook or else)?</p>
<p>
	I can write own <span style="color:#b22222;"><strong>plug_url</strong></span> function, but it's not convinient to pay attention where to use <span style="color:#b22222;"><strong>cot_url</strong></span> and where <span style="color:#b22222;"><strong>plug_url</strong></span>.</p>
]]></description>
			<pubDate>Вт, 03 Лип 2012 09:33:59 -0000</pubDate>
			<link><![CDATA[https://www.cotonti.com/ua/forums?m=posts&q=6987&d=0#post34840]]></link>
		</item>
		<item>
			<title>Trustmaster</title>
			<description><![CDATA[<p>
	There are no handy rules for AJAX links, so currently they are raw like: cot_url('plug', 'r=plugname') =&gt; index.php?r=plugname.</p>
]]></description>
			<pubDate>Ср, 27 Чер 2012 06:38:18 -0000</pubDate>
			<link><![CDATA[https://www.cotonti.com/ua/forums?m=posts&q=6987&d=0#post34808]]></link>
		</item>
		<item>
			<title>Macik</title>
			<description><![CDATA[<p>
	Sorry for intervention...</p>
<p>
	How I can generate with «cot_url» propper link for call ajax part of a plugin ? (I mean «plug.php?r=plugname» or something like this).</p>
]]></description>
			<pubDate>Вт, 26 Чер 2012 22:22:18 -0000</pubDate>
			<link><![CDATA[https://www.cotonti.com/ua/forums?m=posts&q=6987&d=0#post34807]]></link>
		</item>
		<item>
			<title>fraze</title>
			<description><![CDATA[<p>
	perfect - cheers elf :)</p>
]]></description>
			<pubDate>Пн, 25 Чер 2012 21:33:47 -0000</pubDate>
			<link><![CDATA[https://www.cotonti.com/ua/forums?m=posts&q=6987&d=0#post34805]]></link>
		</item>
		<item>
			<title>elfrenazo</title>
			<description><![CDATA[<p>
<br />My .htaccess hope that helps.
<br /><br /><br />
### COTONTI URLTRANS ###<br />
# Rewrite engine options<br />
Options FollowSymLinks -Indexes<br />
RewriteEngine On<br /><br />
# Server-relative path to Cotonti:<br />
RewriteBase "/"<br />
RewriteRule ^(datas|images|js|themes)/(.*)$ $1/$2 [QSA,NC,NE,L]<br /><br />

# Admin area and message are special scripts<br />
RewriteRule ^admin/([a-z0-9]+) admin.php?m=$1 [QSA,NC,NE,L]<br />
RewriteRule ^(admin|login|message)(/|\?|$) $1.php [QSA,NC,NE,L]<br /><br />
 
# System category has priority over /system folder<br />
RewriteRule ^system/?$  index.php?rwr=system [QSA,NC,NE,L]<br /><br />
 
# All the rest goes through standard rewrite gateway<br />
RewriteCond %{REQUEST_FILENAME} !-f<br />
RewriteCond %{REQUEST_FILENAME} !-d<br />
RewriteRule ^([^?]+) index.php?rwr=$1 [QSA,NC,NE,L]<br /><br />

### COTONTI URLTRANS ###<br /><br /></p>]]></description>
			<pubDate>Пн, 25 Чер 2012 20:29:11 -0000</pubDate>
			<link><![CDATA[https://www.cotonti.com/ua/forums?m=posts&q=6987&d=0#post34804]]></link>
		</item>
		<item>
			<title>Trustmaster</title>
			<description><![CDATA[<p>
	It seems that on some hosts you need</p>
<pre class="brush:plain;">
Options -Indexes</pre>
<p>
	and on some hosts you don't.</p>
]]></description>
			<pubDate>Пн, 25 Чер 2012 20:10:27 -0000</pubDate>
			<link><![CDATA[https://www.cotonti.com/ua/forums?m=posts&q=6987&d=0#post34803]]></link>
		</item>
		<item>
			<title>fraze</title>
			<description><![CDATA[<p>
	sorry for hijacking.  i've enabled Handy URLs and added that info to my htaccess but admin still wont work.  i get the same problem elfrenazo did...</p>
]]></description>
			<pubDate>Пн, 25 Чер 2012 17:58:22 -0000</pubDate>
			<link><![CDATA[https://www.cotonti.com/ua/forums?m=posts&q=6987&d=0#post34802]]></link>
		</item>
		<item>
			<title>elfrenazo</title>
			<description><![CDATA[<p>
	It all works well. thank you very much <a href="http://www.cotonti.com/users/Twiebie"><font color="#012d48">Twiebie</font></a> and <a href="http://www.cotonti.com/users/Trustmaster"><font color="#012d48">Trustmaster</font></a> <img alt="yes" height="20" src="http://www.cotonti.com/plugins/ckeditor/lib/plugins/smiley/images/thumbs_up.gif" title="yes" width="20" /></p>
]]></description>
			<pubDate>Пн, 25 Чер 2012 17:35:09 -0000</pubDate>
			<link><![CDATA[https://www.cotonti.com/ua/forums?m=posts&q=6987&d=0#post34801]]></link>
		</item>
		<item>
			<title>Trustmaster</title>
			<description><![CDATA[<p>
	Maybe this version can help:</p>
<pre class="brush:plain;">
# Rewrite engine options
Options -Indexes
RewriteEngine On

# Server-relative path to Cotonti. Replace it with your path if you run Cotonti
# in a subfolder
RewriteBase "/"

# Admin area and message are special scripts
RewriteRule ^admin/([a-z0-9]+) admin.php?m=$1 [QSA,NC,NE,L]
RewriteRule ^(admin|login|message)(/|\?|$) $1.php [QSA,NC,NE,L]

# System category has priority over /system folder
RewriteRule ^system/?$  index.php?rwr=system [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]</pre>
]]></description>
			<pubDate>Пн, 25 Чер 2012 07:14:17 -0000</pubDate>
			<link><![CDATA[https://www.cotonti.com/ua/forums?m=posts&q=6987&d=0#post34794]]></link>
		</item>
		<item>
			<title>elfrenazo</title>
			<description><![CDATA[<p>
	I tried with nothing, it is strange. Any way to disable the admin rewrite?</p>
]]></description>
			<pubDate>Пн, 25 Чер 2012 05:52:41 -0000</pubDate>
			<link><![CDATA[https://www.cotonti.com/ua/forums?m=posts&q=6987&d=0#post34790]]></link>
		</item>
		<item>
			<title>Trustmaster</title>
			<description><![CDATA[<p>
	Are there any other rules in your .htaccess, apart from what Twiebie mentioned?</p>
]]></description>
			<pubDate>Пн, 25 Чер 2012 05:38:41 -0000</pubDate>
			<link><![CDATA[https://www.cotonti.com/ua/forums?m=posts&q=6987&d=0#post34789]]></link>
		</item>
		<item>
			<title>elfrenazo</title>
			<description><![CDATA[<p>
	thank you very much, it works. Failure administration panel. example enter <u>malditopc.es/admin/extensions</u> redirects me to start administration. I can do to fix it?</p>
]]></description>
			<pubDate>Пн, 25 Чер 2012 01:12:56 -0000</pubDate>
			<link><![CDATA[https://www.cotonti.com/ua/forums?m=posts&q=6987&d=0#post34787]]></link>
		</item>
		<item>
			<title>Twiebie</title>
			<description><![CDATA[<p>
	I think these rules will work with the Handy preset:</p>
<pre class="brush:java;">
# Rewrite engine options
RewriteEngine On

# Server-relative path to Cotonti. Replace it with your path if you run Cotonti
# in a subfolder
RewriteBase "/"

# Language selector
#RewriteRule ^(en|ru|de|nl)/(.*) $2?l=$1 [QSA,NC,NE]

# Admin area and message are special scripts
RewriteRule ^admin/([a-z0-9]+) admin.php?m=$1 [QSA,NC,NE,L]
RewriteRule ^(admin|login|message)(/|\?|$) $1.php [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]</pre>
<p>
	Paste them in your .htaccess file.</p>
]]></description>
			<pubDate>Нд, 24 Чер 2012 23:40:56 -0000</pubDate>
			<link><![CDATA[https://www.cotonti.com/ua/forums?m=posts&q=6987&d=0#post34786]]></link>
		</item>
		<item>
			<title>elfrenazo</title>
			<description><![CDATA[<p>
	Hello, like putting in so handy pluging urleditor. Do I have to create new rules?</p>
]]></description>
			<pubDate>Нд, 24 Чер 2012 21:54:14 -0000</pubDate>
			<link><![CDATA[https://www.cotonti.com/ua/forums?m=posts&q=6987&d=0#post34785]]></link>
		</item>
	</channel>
</rss>