我用来练习.htaccess文件的这个简单的.htaccess几乎总是起作用的:
RewriteEngine on
RewriteRule ^.*$ test.html
当我拥有文件flowers.html并使用时,就会被重定向到test.html,但是当我将flowers.html重命名为flowers.php时,会得到一个带有消息The requested URL /flowers was not found on this server的404页。有人知道是什么原因造成的吗?
编辑:当我创建一个名为flowers的空文件时,它会正确地重定向到test.html。这里发生什么事情?
晚上好,我正在做一个Laravel项目。我做了一个“您的个人资料”按钮,将您重定向到您的个人资料,但我有一个用户:查看用户。{.profilePage}找不到。 我的UserPolicy.php函数: public function Owner(User $user,User $destinationUser){
return $user->id == $destinationUser->id;
} 我的UserController.php public function profile(User $user)
{