我在服务器的根目录中创建了一个文件夹。尝试从 URL 访问它时,会出现 404 错误。
如何创建 .htaccess 来访问该文件夹和文件夹内的文件?
试试这个 .htaccess
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>
本文收集自互联网,转载请注明来源。
如有侵权,请联系[email protected] 删除。
我来说两句