bitrix-routing

Configure Bitrix RoutingConfigurator routes in web.php and api.php files.

33|3|Updated Jun 5, 2025
One-click install
npx skills add https://github.com/bxmaximum/bitrix_ai_challenge --skill bitrix-routing
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: bitrix-routing
Source: https://github.com/bxmaximum/bitrix_ai_challenge/tree/main/.agents/skills/bitrix-routing
Command: npx skills add https://github.com/bxmaximum/bitrix_ai_challenge --skill bitrix-routing

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Covers modern Bitrix routing by configuring RoutingConfigurator to create clean, scalable URLs across local and module routes, enabling migration from urlrewrite.php and easier URL generation.

Core Features & Use Cases

  • Configure routing via web.php and api.php files placed in /local/routes/ or /bitrix/routes/.
  • Support groups, prefixes, middleware, named routes, parameters and where constraints, with URL generation through UrlManager.
  • Use Case: Apply to public endpoints and REST APIs, and migrate legacy URL rules in enterprise Bitrix apps.

Quick Start

Define routing rules with RoutingConfigurator in a web.php file under local/routes or a module and register them in .settings.php to enable URL generation and REST endpoints.

Frequently Asked Questions about bitrix-routing

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I configure modern Bitrix routing using web.php and api.php?

Bitrix routing migration from urlrewrite.php involves defining legacy URL rules in web.php or api.php files using RoutingConfigurator with groups, prefixes, and middleware. This transition enables scalable URL management across local and module routes.

Does Bitrix RoutingConfigurator support route groups, prefixes, and middleware?

Bitrix RoutingConfigurator supports route groups, prefixes, middleware, named routes, parameter constraints, and URL generation through UrlManager. These features allow scalable configuration for public endpoints and REST APIs in enterprise Bitrix applications.

How do I generate URLs in Bitrix using UrlManager and named routes?

To generate URLs in Bitrix using UrlManager, you define named routes and parameter constraints within your RoutingConfigurator setup in web.php or api.php. Proper integration in .settings.php ensures UrlManager can correctly resolve and generate these modern URLs.

Can I use Bitrix routing configuration for both local and module routes?

Bitrix routing configuration applies to both local and module routes. By placing web.php and api.php files in the appropriate directories and integrating them via .settings.php, you can manage public endpoints and REST APIs across different application modules.

What are the limitations of migrating from urlrewrite.php to Bitrix RoutingConfigurator?

Migrating from urlrewrite.php to Bitrix RoutingConfigurator requires proper .settings.php integration to enable UrlManager. Limitations include ensuring all legacy URL rules are correctly translated into groups, prefixes, and middleware structures within web.php or api.php files.