如何访问根目录(WordPress)中的文件夹



我在服务器的根目录中创建了一个文件夹。尝试从 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>

最新更新