Forum categories

Ошибка 404 при попытке открыть пункт меню "Поставщики"

webitproff
webitproff • 2026-01-15 23:31 #429

#428 Dimentiy: 
 

В принципе, можно считать, разобрался. 

Правда теперь адрес так выглядит /users?group=contractors , но оно хоть открывается.

Можете подсказать, Там сразу как переходишь на страничку поставщиков, заголовок “ПОЛЬЗОВАТЕЛИПОСТАВЩИКИ” вот так одним словом. Куда глянуть, чтобы убрать слово “ПОЛЬЗОВАТЕЛИ” вообще? Просто, чтобы осталось “ПОСТАВЩИКИ”

ну “в принципе разобрался” - это так себе результат 😉  
1. Адрес /users?group=contractors - скорее всего:

  •  не включен плагин URL Editor
  • Управление сайтом -> Расширения -> URL Editor - -> Конфигурация. выпадающий список Набор предустановок: marketplace
  • .htaccess в корне сайта должен содержать код 
# users
RewriteRule ^customers/?$ index.php?e=users&group=customer [QSA,NC,NE,L]
RewriteRule ^contractors/?$ index.php?e=users&group=contractor [QSA,NC,NE,L]
RewriteRule ^customers/([a-zA-Z0-9_./%-]+)/?$ index.php?e=users&group=customer&cat=$1 [QSA,NC,NE,L]
RewriteRule ^contractors/([a-zA-Z0-9_./%-]+)/?$ index.php?e=users&group=contractor&cat=$1 [QSA,NC,NE,L]

по поводу заголовка - я не понял где именно: на странице в теле шаблона, в заголовке браузера ?

ну и на всякий: public_html/plugins/urleditor/presets/marketplace.dat

должен содержать код 

forums    m=posts&q=&d=    forums/{forums_url_structure()}/page{$d}
forums    m=posts&q=*    forums/{forums_url_structure()}
forums    m=posts&id=*    forums/{forums_url_structure()}
forums    m=topics&s=&d=    forums/{forums_url_structure()}/page{$d}{!$m}
forums    m=topics&s=*    forums/{forums_url_structure()}{!$m}
forums    c=*    forums/{$c}
forums    *    forums
page    m=*                        page?m={$m}
page    c=system&al=*            {$al}{!$c}
page    c=*&al=*                {cot_url_catpath()}/{$al}
page    c=*&id=*                {cot_url_catpath()}/{$id}
page    c=*                        {cot_url_catpath()}
index    *                        {$_path}
plug    e=tags&a=pages&t=*        {$e}/{$t}{!$a}
plug    e=tags&a=*&t=*            {$e}/{$a}/{$t}
plug    e=*                        {$e}
users    group=customer&cat=*            customers/{$cat}/{!$group}
users    group=contractor&cat=*            contractors/{$cat}/{!$group}
users    group=customer            customers/{!$group}
users    group=contractor            contractors/{!$group}
users    m=details&u=*            users/{cot_url_username()}
login    *                        {$_area}
message    *                        {$_area}
admin    m=*                        admin/{$m}
admin    *                        {$_area}
rss        m=*&c=*                    {$_area}/{$m}/{$c}
rss        m=*&id=*                {$_area}/{$m}/{$id}
rss        c=*                        {$_area}/{$c}
rss        m=*                        {$_area}/{$m}
*        c=*&al=*                {$_area}/{cot_url_catpath()}/{$al}
*        c=*&id=*                {$_area}/{cot_url_catpath()}/{$id}
*        c=*                        {$_area}/{cot_url_catpath()}
*        al=*                    {$_area}/{$al}
*        id=*                    {$_area}/{$id}
*        *                        {$_area}

 

 

🗿

🧙‍♂️ Well met, good traveler! Fate has guided your steps to our humble realm. Here, wise sages and masters of the coding craft ⚒️📜 gather to unravel the mysteries of the code ✨⚙️, share their knowledge, and add new chapters to our chronicles.
⬅️ To the left lie ancient scrolls 📚 filled with forgotten wisdom. ⬆️ Straight ahead, friendly folk offer counsel 💬 to those in need. ➡️ To the right, you may become a chronicler ✍️ yourself, sharing your craft and leaving words of wisdom for those yet to come.
📝 Delay no longer—tell us the name by which you are known, complete the rite of registration 🛡️, and join our fellowship!
🏰 Our brotherhood holds no secret initiation, yet many halls remain closed to wandering guests, for some knowledge 💎 is reserved for those who choose to walk this path beside us.