如何拒绝从URL访问.class文件但允许从CI Application文件夹访问?

时间:2015-03-16 20:31:51

标签: php codeigniter

这是我的HTACCESS文件

如何拒绝从URL访问.class文件但允许从CI Application文件夹访问?

    RewriteEngine On
    RewriteBase /ci/


    RewriteCond %{REQUEST_URI} ^system/.*
    RewriteRule ^(.*)$ /index.php?/$1 [L]





    RewriteCond %{REQUEST_URI} ^application.*
    RewriteRule ^(.*)$ /index.php?/$1 [L]




    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule ^(.*)$ index.php?/$1 [L]

0 个答案:

没有答案