A
A
Alexander2017-04-05 10:40:27
PHP
Alexander, 2017-04-05 10:40:27

Styles not working after setting htaccess?

I write veloMVC, after setting up .htaccess:

RewriteEngine On
RewriteCond %{REQUESTS_FILENAME} !-f
RewriteCond %{REQUESTS_FILENAME} !-d
RewriteRule .* index.php [L]

All calls to the site are redirected to index. How to set up correctly so that styles, pictures, etc. are ignored chtol?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
Shamsudin Serderov, 2017-04-05
@Alex1237

<IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteRule ^ index.php [L]
</IfModule>

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question