O
O
olezhenka2017-11-02 11:32:57
PHP
olezhenka, 2017-11-02 11:32:57

How to return the same index file when opening any page of the site?

What setting is needed in Apache so that when, for example, site.ru/user/account is opened, not site.ru/user/account/index.html is returned, but site.ru/index.html and with the main condition that it does not change page address?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
G
Gleb Starkov, 2017-11-02
@olezhenka

RewriteCond %{REQUEST_FILENAME} !-d
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteRule ^ index.html [L]

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question