D
D
Danil Razumkov2019-02-10 18:08:31
htaccess
Danil Razumkov, 2019-02-10 18:08:31

Error in .htaccess, how to fix?

Throws 500 error. Where is the mistake? Itself here is a complete 0. <FilesMatch "\.php"> ...inserted hosting, to connect php 7. Separately, everything seems to work, but together (

<FilesMatch "\.php">
  RemoveHandler .php
  AddType application/x-httpd-php7 .php
  Action application/x-httpd-php7 /cgi-bin/php7/php7-cgi
</FilesMatch>

RewriteEngine on
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.*)$ /core/router.php?path=$1 [NC,L,QSA]

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
Vladislav Lyskov, 2019-02-10
@Vlatqa

Lines 3-4 should be 70 for php 7.0, 71 for 7.1, etc., instead of 7
PS and why do you need the entire first block?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question