Apache为非现有页面返回200状态

Apache returns 200 status for non existing page. For example we have example.com. If we'll type a weird url after that it will return 404 example.com/asdmifas , BUT if we will go to existent page example.com/page.php and add that weird part after backslash it will return status code 200 and rendered /page.php.

Here is my .htaccess file:

<IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteCond %{HTTPS} !=on
    RewriteRule ^(.*) https://%{SERVER_NAME}/$1 [R,L] 
    RewriteCond %{HTTP_HOST} !^www\.
    RewriteRule ^(.*)$ https://www.%{HTTP_HOST}/$1 [R=301,L]
</IfModule>

Thank you in advance!