Warning: file_get_contents(/data/phpspider/zhask/data//catemap/6/apache/8.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

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/.htaccess/5.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
相同的apache mod_rewrite配置在一台机器上工作,在另一台机器上失败_Apache_.htaccess_Mod Rewrite - Fatal编程技术网

相同的apache mod_rewrite配置在一台机器上工作,在另一台机器上失败

相同的apache mod_rewrite配置在一台机器上工作,在另一台机器上失败,apache,.htaccess,mod-rewrite,Apache,.htaccess,Mod Rewrite,httpd.conf(家用计算机): 转到urllocalhost/cabinet/add\u resume 404未找到(在家用计算机上) 在工作中,计算机工作 在家里,没有 AllowOverride None 该指令明确禁止使用.htaccess文件。 请将其设置为更有用的值,例如: AllowOverride All .htaccess在工作电脑上===.htaccess在家庭电脑上。AllowOverride All?尝试AllowOverride allYES!好极了谢谢 Op

httpd.conf(家用计算机):

转到url
localhost/cabinet/add\u resume
404未找到(在家用计算机上)

在工作中,计算机工作

在家里,没有

AllowOverride None
该指令明确禁止使用.htaccess文件。 请将其设置为更有用的值,例如:

AllowOverride All

.htaccess在工作电脑上===.htaccess在家庭电脑上。
AllowOverride All
?尝试
AllowOverride all
YES!好极了谢谢
Options +FollowSymLinks
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*) /index.php [L]
AllowOverride None
AllowOverride All