. PHP sayfaya erişimi engelleme htaccess

0 Cevap php

I have a directory in my Apache web service. If I have no configuration file in it I can access a test.php file in it, but as soon as I add the following .htaccess file I get a 404 error.

Neden ve ne .htaccess dosya eklenmiş ya da değiştirilmesi gereken ihtiyaçlar do?

<IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    # NOTE: If you added a web_prefix to config, add it here too, e.g.:
    RewriteRule (.*) /shindig/index.php [L]
    #RewriteRule (.*) index.php [L]
    # for OAuth signatures to work for POSTed data,
    # always_populate_raw_data needs to be turned on
    php_flag always_populate_raw_post_data On
    php_flag magic_quotes_gpc Off
</IfModule>

0 Cevap