B
B
Bogdan Nasikovsky2014-10-08 14:21:19
Apache HTTP Server
Bogdan Nasikovsky, 2014-10-08 14:21:19

How to make requests to real existing files and not index.php?

How to put in the web server config, so that all requests go automatically to the index.php file, no matter what path is requested, except in cases where the file really exists?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
K
kwolfy, 2014-10-08
@kwolfy

<IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteRule ^(.*)$ index.php?_url=/$1 [QSA,L]
</IfModule>

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question