T
T
teodorih2016-11-30 18:05:44
PHP
teodorih, 2016-11-30 18:05:44

500 server error when having a get parameter?

I would be very grateful if someone could help.
There is a site. On all get pages, the parameter is set without problems.
In addition to the main page.
In the same way as it is not loaded by url from index.php
I.e.
www.site.ru - loads
www.site.ru/index.php or www.site.ru?get=flag - gives error 500.
htaccess file.

RewriteEngine on
    RewriteBase /
    RewriteCond %{HTTP_HOST} ^www\.(.*)$ [NC]
    RewriteRule ^(.*)$ http://%1/$1 [R=301,L]
    
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    
    RewriteRule ^(.*)$ index.php [L,QSA]
    
    php_flag display_errors off
    php_flag display_startup_errors off

Thanks in advance. Pe.Se. no access to php and nginx logs.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
M
Maxim Timofeev, 2016-11-30
@webinar

Why
would you replace it with:
RewriteRule . index.php

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question