P
P
Pavel2020-09-02 18:48:27
1C-Bitrix
Pavel, 2020-09-02 18:48:27

How to remove static pages from the site root in bitrix?

Recently started learning bitrix. And immediately the complete littering of the root of the site caught my eye and blood flowed from them.
The question is, can all static pages be moved to a separate directory such as "static", and for example, when requesting "http : // site.mu / about" the file "about/index.php" would be searched in this directory.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexey Emelyanov, 2020-09-02
@babarun

  1. Read the documentation https://dev.1c-bitrix.ru/learning/course/index.php...
  2. How to remove static pages from the site root in bitrix
    No way, and this is normal if you статические страницыmean *.php files in the root DOCUMENT_ROOT
  3. about.php- this is not a static file, but an interpreted script
  4. when requesting "http://site.mu/about" the file "about.php" would be searched in this directory
    Create a section /about/and place index.php in it with the page you need
  5. If you really want a single entry point, then you can make one big complex component, but it’s better not to do this

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question