Forum categories

Market PRO + всё, что связано с ЧПУ

webitproff
webitproff • 2026-09-13 01:09 #598

 пресет правил

/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    m=details&u=*&tab=*&cat=*    users/{cot_url_username()}/tab/{$tab}/{$cat}{!$m}
users    m=details&u=*&tab=*           users/{cot_url_username()}/tab/{$tab}{!$m}
users    m=details&u=*                users/{cot_url_username()}{!$m}
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()} 
# закоментировано и вместо неё использовать users    m=details&u=*                users/{cot_url_username()}{!$m}
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}
market    m=vendors                    market/vendors{!$m}
market    m=vendor&u=*&c=*            market/vendor/{$u}/{$c}{!$m}
market    m=vendor&u=*                market/vendor/{$u}{!$m}
market    m=vendor&uid=*&u=*          market/vendor-{$uid}-{$u}{!$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}

 

 .htaccess


################ 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
# Принудительное перенаправление на HTTPS и удаление www
RewriteCond %{HTTPS} off [OR]
RewriteCond %{HTTP_HOST} ^www\. [NC]
RewriteCond %{HTTP_HOST} ^(?:www\.)?(.+)$ [NC]
RewriteRule ^ https://%1%{REQUEST_URI} [R=301,L]

# Prevent to load sensible data
<FilesMatch "\.(dat|tpl|inc)$">
order deny,allow
deny from all
</FilesMatch>

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

RewriteRule ^sitemap-forums\.xml$ index.php?r=sitemap_forums [L]
RewriteRule ^sitemap-forums-index\.xml$ index.php?r=sitemap_forums&a=index [L]

RewriteRule ^sitemap-users\.xml$ index.php?r=sitemap_users [L]
RewriteRule ^sitemap-users-index\.xml$ index.php?r=sitemap_users&a=index [L]

# ==========================================================
# Sitemap Market – multilingual sitemap for the Market module (Cotonti)
# https://github.com/webitproff/sitemap-market-xml-i18n-cotonti
# ==========================================================
RewriteRule ^sitemap-market\.xml$ index.php?r=sitemap_market [QSA,L]
RewriteRule ^(en|ru|pl|ua)/sitemap-market\.xml$ index.php?r=sitemap_market&l=$1 [QSA,L]
RewriteRule ^sitemap-market-index\.xml$ index.php?r=sitemap_market&a=index [QSA,L]

RewriteRule ^sitemap-pages\.xml$ index.php?r=sitemap_pages [QSA,L]
RewriteRule ^(en|ru|pl|ua)/sitemap-pages\.xml$ index.php?r=sitemap_pages&l=$1 [QSA,L]
RewriteRule ^sitemap-pages-index\.xml$ index.php?r=sitemap_pages&a=index [QSA,L]



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

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

# System category has priority over /system folder
RewriteRule ^system/?$  index.php?rwr=system [QSA,NC,NE,L]

# ========== Market PRO: витрины продавцов ==========

# Список всех продавцов
RewriteRule ^market/vendors/?$ index.php?e=market&m=vendors [L,QSA]

# Витрина конкретного продавца по имени
RewriteRule ^market/vendor/([^/]+)/?$ index.php?e=market&m=vendor&u=$1 [L,QSA]

# Витрина продавца с фильтром по категории
RewriteRule ^market/vendor/([^/]+)/([^/]+)/?$ index.php?e=market&m=vendor&u=$1&c=$2 [L,QSA]

# Комбинированный вариант: vendor-<id>-<username>
RewriteRule ^market/vendor-([0-9]+)-([^/]+)/?$ index.php?e=market&m=vendor&uid=$1&u=$2 [L,QSA]


# 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]
# users profile tabs
RewriteRule ^users/([^/]+)/tab/([^/]+)/([^/]+)/?$ index.php?e=users&m=details&u=$1&tab=$2&cat=$3 [QSA,NC,NE,L]
RewriteRule ^users/([^/]+)/tab/([^/]+)/?$ index.php?e=users&m=details&u=$1&tab=$2 [QSA,NC,NE,L]
# RewriteRule ^users/([^/]+)/?$ index.php?e=users&m=details&u=$1 [QSA,NC,NE,L]

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

 

 

 

🗿

🧙‍♂️ 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.