在.htaccess文件中添加此文件后,Index.php页面无法正常工作

时间:2017-06-09 09:39:57

标签: php .htaccess

制作此.htaccess文件后

ErrorDocument 404 localhost/website/error404.html 

RewriteEngine On
RewriteRule ^([0-9A-Za-z-]+)/?$ users.php?name=$1 [NC,L] 

如果我在网站内打开一个文件夹,例如:localhost/website/user 然后它将我重定向到error404页面。我需要输入localhost/website/user/index.php才能打开它。如何解决它们?

0 个答案:

没有答案