http://localhost/uploads/student_doc/15.doc
我无法访问此目录。我使用.htaccess来允许访问,但这不起作用。
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
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]
Order deny,allow
Allow from all
RewriteCond %{REQUEST_URI} !/uploads/student_doc
Options +Indexes
# or #
IndexIgnore *
</IfModule>