<?xml version='1.0' encoding='UTF-8'?>
<rss version='2.0'>
	<channel>
		<title>cotonti.com : Где скачать список правил переадресации EDIT URL для биржы ?</title>
		<link>https://www.cotonti.com</link>
		<description>Son konu mesajları</description>
		<generator>Cotonti</generator>
		<language>en</language>
		<pubDate>Wed, 08 Apr 2026 07:36:47 -0000</pubDate>

		<item>
			<title>Louck</title>
			<description><![CDATA[<p>Спасибо, не понял пару моментов. </p>

<p> </p>

<p><span style="color:rgb(68,68,68);font-family:'Open Sans', 'Helvetica Neue', Helvetica, sans-serif;font-size:15px;text-align:justify;background-color:rgb(255,255,255);">Также обратите внимание, что после включения ЧПУ по данной инструкции, также необходимо будет поправить ссылки в основном меню сайта. для этого нужно заменить в шаблоне header.tpl ссылки на каталоги фрилансеров и работодателей. Пример ссылок:</span></p>

<p> </p>

<p><span style="color:rgb(68,68,68);font-family:'Open Sans', 'Helvetica Neue', Helvetica, sans-serif;font-size:15px;text-align:justify;background-color:rgb(255,255,255);">-  это делается только если алиасы freelancer и employer сменены, верно ?</span></p>

<p> </p>

<p><span style="color:rgb(68,68,68);font-family:'Open Sans', 'Helvetica Neue', Helvetica, sans-serif;font-size:15px;text-align:justify;background-color:rgb(255,255,255);">3) Далее в настройках плагина Urleditor необходимо выбрать ваш пресет-файл, который вы создали в пункте 1</span></p>

<p> </p>

<p>- не понял что надо делать и сделал следующее. В админке в edit URL сверху была надпись: ошибка, нельзя записывать в файл <span class="s1">urltrans.dat .</span></p>

<p>Файла не обнаружил. Файл .dat из первого пункта переименовал в <span style="color:rgb(68,68,68);font-family:'Open Sans', 'Helvetica Neue', Helvetica, sans-serif;font-size:14px;">urltrans.dat и закачал на сервер. В настройках edit URL увидел длинный списко полей, не чего не менял, нажал на сохранить, не поставив галочку переписать .htaccess.</span></p>

<p>Сейчас выглядит так:</p>

<p> </p>

<p class="p1" style="margin:0px;font-size:12px;line-height:normal;font-family:Helvetica;"> </p>

<p class="p2" style="margin:0px;font-size:12px;line-height:normal;font-family:Helvetica;"><img alt="" src="http://i.piccy.info/i9/9b4ffb70df1cba684edcff0b86d8d43d/1591037063/298003/1378728/Snymok_ekrana_2020_06_01_v_21_38_49.png" style="width:600px;height:385px;" /></p>

<p class="p2" style="margin:0px;font-size:12px;line-height:normal;font-family:Helvetica;"> </p>

<p class="p2" style="margin:0px;font-size:12px;line-height:normal;font-family:Helvetica;"><img alt="" src="http://i.piccy.info/i9/5e473950f12355d296631e398ece9fec/1591037098/119634/1378728/Snymok_ekrana_2020_06_01_v_21_38_38.png" style="width:600px;height:341px;" /></p>

<p class="p2" style="margin:0px;font-size:12px;line-height:normal;font-family:Helvetica;"> </p>

<p class="p2" style="margin:0px;font-size:12px;line-height:normal;font-family:Helvetica;"><img alt="" src="http://i.piccy.info/i9/08f1402b80d7f1c83f9d6e53e61cb8ff/1591038096/132530/1378728/Snymok_ekrana_2020_06_01_v_21_55_56.png" style="width:600px;height:373px;" /></p>

<p class="p2" style="margin:0px;font-size:12px;line-height:normal;font-family:Helvetica;"> </p>

<p class="p2" style="margin:0px;font-size:12px;line-height:normal;font-family:Helvetica;"><strong>Все ли я правильно сделал ?</strong></p>
]]></description>
			<pubDate>Pzt, 01 Haz 2020 18:53:27 -0000</pubDate>
			<link><![CDATA[https://www.cotonti.com/tr/forums?m=posts&q=8986&d=0#post44855]]></link>
		</item>
		<item>
			<title>webitproff</title>
			<description><![CDATA[<blockquote class="fp"><a href="https://www.cotonti.com/forums?m=posts&amp;q=8986&amp;d=1#44852">#44852</a> <strong>Louck: </strong>
<p>Поставил модуль edit URL, работает хорошо, подскажите пожалуйста, где скачать актуальный список правил переадресации для биржы.</p>
</blockquote>

Настройка ЧПУ для фриланс-биржи на Cotonti

Данный мануал позволяет настроить ЧПУ для вашей фриланс-биржи. ЧПУ также включает настройки для разделов фрилансеров и работодателей, которые позволяют заменить ссылки типа users/?group=freelancer на freelancers/

Для настройки ЧПУ для фриланс-биржи необходимо первым делом установить плагин URLeditor, который входит в сборку.

1) <strong>После этого в директорию plugins/urleditor/presets/</strong> необходимо загрузить пресет-файл с правилами формирования ссылок Скачать его можно <a href="https://drive.google.com/file/d/1EwAtIGeCcm7ZnZZLbG0MixcrZaHQJbzJ/view?usp=sharing" rel="nofollow">отсюда: myconfig.dat</a>

Файл содержит следующий код:
<pre class="EnlighterJSRAW">forums    m=posts&amp;q=&amp;d=    forums/{forums_url_structure()}/page{$d}
forums    m=posts&amp;q=*    forums/{forums_url_structure()}
forums    m=posts&amp;id=*    forums/{forums_url_structure()}
forums    m=topics&amp;s=&amp;d=    forums/{forums_url_structure()}/page{$d}{!$m}
forums    m=topics&amp;s=*    forums/{forums_url_structure()}{!$m}
forums    c=*    forums/{$c}
forums    *    forums
page    m=*                        page?m={$m}
page    c=system&amp;al=*            {$al}{!$c}
page    c=*&amp;al=*                {cot_url_catpath()}/{$al}
page    c=*&amp;id=*                {cot_url_catpath()}/{$id}
page    c=*                        {cot_url_catpath()}
index    *                        {$_path}
plug    e=tags&amp;a=pages&amp;t=*        {$e}/{$t}{!$a}
plug    e=tags&amp;a=*&amp;t=*            {$e}/{$a}/{$t}
plug    e=*                        {$e}
users    group=employer&amp;cat=*            employers/{$cat}/{!$group}
users    group=freelancer&amp;cat=*            freelancers/{$cat}/{!$group}
users    group=employer            employers/{!$group}
users    group=freelancer            freelancers/{!$group}
users    m=details&amp;u=*            users/{cot_url_username()}
login    *                        {$_area}
message    *                        {$_area}
admin    m=*                        admin/{$m}
admin    *                        {$_area}
rss        m=*&amp;c=*                    {$_area}/{$m}/{$c}
rss        m=*&amp;id=*                {$_area}/{$m}/{$id}
rss        c=*                        {$_area}/{$c}
rss        m=*                        {$_area}/{$m}
*        c=*&amp;al=*                {$_area}/{cot_url_catpath()}/{$al}
*        c=*&amp;id=*                {$_area}/{cot_url_catpath()}/{$id}
*        c=*                        {$_area}/{cot_url_catpath()}
*        al=*                    {$_area}/{$al}
*        id=*                    {$_area}/{$id}
*        *                        {$_area}</pre>
 

В директории system/ создаем файл functions.custom.php с кодом функции forums_url_structure() для подключения библиотеки дополнительных функций.

В последних версиях сборки этот файл уже присутствует. Не нужно его заменять, просто дополните его функцией, которая указана ниже!

Подключить его можно в конфиг-файле datas/config.php Для этого установите переменную $cfg['customfuncs'] в значение true:
<pre class="EnlighterJSRAW">$cfg['customfuncs'] = TRUE;</pre>
 

В этом файле должна присутствовать следующая функция:
<pre class="EnlighterJSRAW">function forums_url_structure(&amp;$args)
{
    global $cfg, $db, $structure, $db_forum_topics, $db_forum_posts;

  require_once cot_incfile('forums', 'module');
  
    $script = 'forums';
    $replacement = '';
    if(isset($args['m']) &amp;&amp; $args['m'] == 'topics')
    {
        if(isset($args['s']))
        {
      $d = (int) $args['d'];
      
            $replacement .= str_replace('.', '/', $structure['forums'][$args['s']]['path']);
      
      if(isset($args['d']))
      {
        $replacement .= '/page'.$d;
      }
      
      unset($args['d']);
      unset($args['s']);
        }
        else $replacement .= $script;
    }
    elseif(isset($args['m']) &amp;&amp; $args['m'] == 'posts')
    {
        if(isset($args['q']))
        {
            $q = (int) $args['q'];
            $d = (int) $args['d'];
            $s = $db-&gt;query("SELECT fp_cat FROM $db_forum_posts WHERE fp_topicid=".$q)-&gt;fetchColumn();
            
      $replacement .= str_replace('.', '/', $structure['forums'][$s]['path']).'/topic'.$q;
      
      if(isset($args['d']))
      {
        $replacement .= '/page'.$d;
      }
      
      unset($args['d']);
      unset($args['q']);
            unset($args['m']);
        }
        elseif(isset($args['id']))
        {
            $id = (int) $args['id'];
            $s = $db-&gt;query("SELECT fp_cat FROM $db_forum_posts WHERE fp_id=".$id)-&gt;fetchColumn();
      
            $replacement .= str_replace('.', '/', $structure['forums'][$s]['path']).'/post'.$id;
      
            unset($args['id']);
            unset($args['m']);
        }
        else $replacement .= $script;
    }
    else $replacement .= $script;
    return $replacement;
}</pre>
 

2) После этого обязательно нужно изменить коневой файл .htaccess либо заменить его на наш: .htaccess

Файл содержит следующий код:
<pre class="EnlighterJSRAW">################ Cotonti Handy URLs for Apache #######################

# Below are the rules to be included in your main .htaccess file or httpd.conf

# 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 "/"

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

# Sitemap shortcut
RewriteRule ^sitemap\.xml$ index.php?r=sitemap [L]

# 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]

# users
RewriteRule ^employers/?$ index.php?e=users&amp;group=employer [QSA,NC,NE,L]
RewriteRule ^freelancers/?$ index.php?e=users&amp;group=freelancer [QSA,NC,NE,L]
RewriteRule ^employers/([a-zA-Z0-9_./%-]+)/?$ index.php?e=users&amp;group=employer&amp;cat=$1 [QSA,NC,NE,L]
RewriteRule ^freelancers/([a-zA-Z0-9_./%-]+)/?$ index.php?e=users&amp;group=freelancer&amp;cat=$1 [QSA,NC,NE,L]

# forums
RewriteRule ^forums/([a-zA-Z0-9_./%-]+)/topic([0-9]+)/page([0-9]+)?$ index.php?e=forums&amp;m=posts&amp;q=$2&amp;d=$3 [QSA,NC,NE,L]
RewriteRule ^forums/([a-zA-Z0-9_./%-]+)/topic([0-9]+)?$ index.php?e=forums&amp;m=posts&amp;q=$2 [QSA,NC,NE,L]
RewriteRule ^forums/([a-zA-Z0-9_./%-]+)/post([0-9]+)?$ index.php?e=forums&amp;m=posts&amp;id=$2 [QSA,NC,NE,L]
RewriteRule ^forums/([a-zA-Z0-9_./%-]+)/([a-zA-Z0-9_%-]+)/page([0-9]+)?$ index.php?e=forums&amp;m=topics&amp;s=$2&amp;d=$3 [QSA,NC,NE,L]
RewriteRule ^forums/([a-zA-Z0-9_./%-]+)/([a-zA-Z0-9_%-]+)/?$ index.php?e=forums&amp;m=topics&amp;s=$2 [QSA,NC,NE,L]
RewriteRule ^forums/([a-zA-Z0-9_%-]+)/?$ index.php?e=forums&amp;c=$1 [QSA,NC,NE,L]
RewriteRule ^forums/?$ index.php?e=forums [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>
 

3) Далее в настройках плагина Urleditor необходимо выбрать ваш пресет-файл, который вы создали в пункте 1.

Примечание:

По-умолчанию в сборке фриланс-биржи группы фрилансеров и работодателей имеют алиасы: freelancer и employer, соответственно. Если на вашем сайте алиасы групп имеют другое значение, то необходимо их также изменить в файлах (myconfig.dat и .htaccess). Алиас группы можно изменить в админке в разделе "Пользователи" по ссылке "Правка" напротив нужной группы.
Также обратите внимание, что после включения ЧПУ по данной инструкции, также необходимо будет поправить ссылки в основном меню сайта. для этого нужно заменить в шаблоне header.tpl ссылки на каталоги фрилансеров и работодателей.
Пример ссылок:
<pre class="EnlighterJSRAW">&lt;li&lt;!-- IF {PHP.env.ext} == 'users' AND ({PHP.group} == {PHP.cot_groups.4.alias} AND {PHP.m} == 'main' --&gt; class="active"&lt;!-- ENDIF --&gt;&gt;&lt;a href="https://www.cotonti.com/{PHP.cot_groups.4.alias|cot_url('users', 'group='$this)}"&gt;{PHP.cot_groups.4.name}&lt;/a&gt;&lt;/li&gt;
&lt;li&lt;!-- IF {PHP.env.ext} == 'users' AND ({PHP.group} == {PHP.cot_groups.7.alias} AND {PHP.m} == 'main' --&gt; class="active"&lt;!-- ENDIF --&gt;&gt;&lt;a href="https://www.cotonti.com/{PHP.cot_groups.7.alias|cot_url('users', 'group='$this)}"&gt;{PHP.cot_groups.7.name}&lt;/a&gt;&lt;/li&gt;</pre>
 
]]></description>
			<pubDate>Pzt, 01 Haz 2020 17:45:27 -0000</pubDate>
			<link><![CDATA[https://www.cotonti.com/tr/forums?m=posts&q=8986&d=0#post44853]]></link>
		</item>
		<item>
			<title>Louck</title>
			<description><![CDATA[<p>Поставил модуль edit URL, работает хорошо, подскажите пожалуйста, где скачать актуальный список правил переадресации для биржы.</p>
]]></description>
			<pubDate>Pzt, 01 Haz 2020 15:32:23 -0000</pubDate>
			<link><![CDATA[https://www.cotonti.com/tr/forums?m=posts&q=8986&d=0#post44852]]></link>
		</item>
	</channel>
</rss>