Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/php/297.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Php 重写引擎问题_Php_Mod Rewrite - Fatal编程技术网

Php 重写引擎问题

Php 重写引擎问题,php,mod-rewrite,Php,Mod Rewrite,尊敬的先生 实际上,我正在我的域www.statstracker.in上运行phpserverslist脚本 当.htaccess文件不在www目录中时,脚本工作正常,但其rest菜单不工作。它过去常说找不到我的URL。 但在添加带有以下代码的.htaccess文件后,菜单开始工作: 重新启动发动机 重写基/ # Removes index.php from ExpressionEngine URLs RewriteCond %{THE_REQUEST} ^GET.*index

尊敬的先生

实际上,我正在我的域www.statstracker.in上运行phpserverslist脚本

当.htaccess文件不在www目录中时,脚本工作正常,但其rest菜单不工作。它过去常说找不到我的URL。 但在添加带有以下代码的.htaccess文件后,菜单开始工作:

重新启动发动机 重写基/

    # Removes index.php from ExpressionEngine URLs
    RewriteCond %{THE_REQUEST} ^GET.*index\.php [NC]
    RewriteCond %{REQUEST_URI} !/system/.* [NC]
    RewriteRule (.*?)index\.php/*(.*) /$1$2 [R=301,NE,L]

    # Directs all EE web requests through the site index file
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule ^(.*)$ /index.php/$1 [L]
但我现在面临的问题是,每个菜单只显示主页。即使我点击“登录”菜单,它也不会显示登录表单,它仍然会将我指向主页索引页

我能做什么?? 所有页面(如login.php、register.php等)都位于pages文件夹中

脚本实际上需要启用重写引擎。甚至我在httpd.conf文件中做了更改

选项如下符号链接 不允许超限

选项如下符号链接 允许超越所有