我找不到解决这个问题的办法。基本上我们使用的是一个虚荣的网址系统,所以它的user.domain.com。所有文件都可以像user.domain.com/home.php等文件一样被访问。当你清除cookies时,重定向工作,它会提示他们重新登录。但当我使用注销时,它仍然有效,但当他们返回到登录链接登录时(user.domain.com,在用户的登录页面上有一个登录表单)它将不起作用。我得到的错误是
错误消息:
The page isn't redirecting properly
Firefox has detected
我有一个.htaccess文件,工作正常。但是,/specialsubfolder并非如此。http://www.mydomain.com/specialsubfolder/index.php重定向到401.shtml。
因此,我对.htacces进行了如下修改:
RewriteEngine On
#part I of .htaccess, performed for everything
#stops part II from execution if specialsubfolder
RewriteCond %{REQUEST_URI} "/specialsubfolder/
我正在开发一个小应用程序。使用php和Zend框架。我有一个表单,我使用它的控制器来查看表单。现在我需要操作表单数据并相应地重定向用户。这是我的控制器
<?php
class NewuserController extends Zend_Controller_Action {
public function init()
{
/* Initialize action controller here */
}
public function newuserAction()
{
$this->view->newuser;
}
public function
我的网站上有这些文件和文件夹:
/index.php ( that include php files contained in folder1 and folder2 )
/config.php
/folder1/
/folder2/
我想要的是:
当用户指向任何文件夹( folder1、folder2或任何其他文件夹)时,他会被重定向至index.php
我怎么能这么做呢?