F
F
fredrsf2012-10-20 23:28:07
PHP
fredrsf, 2012-10-20 23:28:07

How to remove a folder from urlrewrite.php processing?

Good afternoon,
All requests to the Bitrix site are processed by the /bitrix/urlrewrite.php file. There is a folder /docs/ which contains independent scripts. Everything in it is built according to the MVC principle and all requests must go to index.php inside the folder. How can I specify urlrewrite so that everything that goes into this folder is directly, and not processed?
In .htaccess

RewriteCond %{REQUEST_FILENAME} !-f
  RewriteCond %{REQUEST_FILENAME} !-l
  RewriteCond %{REQUEST_FILENAME} !-d
  RewriteCond %{REQUEST_FILENAME} !/bitrix/urlrewrite.php$
  RewriteRule ^(.*)$ /bitrix/urlrewrite.php [L]
  RewriteRule .* - [E=REMOTE_USER:%{HTTP:Authorization}]

Is it possible to do this through .htaccess?

Answer the question

In order to leave comments, you need to log in

4 answer(s)
U
Urevic, 2012-10-20
@fredrsf

Add .htaccess RewriteRule ^/docs/(.*) /docs/index.php [L]
And if there is some static in /docs/ and requests to it reach Apache, then you need to insert RewriteRule again before this these three RewriteConds.

A
astal, 2012-10-21
@astal

in docs/ put another file .htaccess RewriteRule .* index.php

A
Alexey Skahin, 2012-10-21
@pihel

Add or remove an exception to address processing: www.your_site.ru/bitrix/admin/urlrewrite_list.php?lang=ru

F
fredrsf, 2012-10-21
@fredrsf

Thank you all! I put .htaccess in the root of the /docs/ folder and described the rules that were required. Earned

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question