Warning: file_get_contents(/data/phpspider/zhask/data//catemap/4/wpf/14.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 错误404-使用mod_rewrite代理重写URL时未找到页面_Php_Apache_.htaccess_Mod Rewrite_Proxy - Fatal编程技术网

Php 错误404-使用mod_rewrite代理重写URL时未找到页面

Php 错误404-使用mod_rewrite代理重写URL时未找到页面,php,apache,.htaccess,mod-rewrite,proxy,Php,Apache,.htaccess,Mod Rewrite,Proxy,此指令将example.com重定向到example.info/es/test.php: 此指令将生成example.com错误404-找不到页面,而不是将其改写为example.info/es/test.php: 网络主机是HostGator,他们说mod_proxy和mod_proxy\u http已启用。我认为,使用mod_rewrite进行代理不适用于他们的服务器 错误日志: [Wed Dec 25 10:45:05 2013] [alert] [client 112.210.128.1

此指令将example.com重定向到example.info/es/test.php:

此指令将生成example.com错误404-找不到页面,而不是将其改写为example.info/es/test.php:

网络主机是HostGator,他们说
mod_proxy
mod_proxy\u http
已启用。我认为,使用
mod_rewrite
进行代理不适用于他们的服务器

错误日志:

[Wed Dec 25 10:45:05 2013] [alert] [client 112.210.128.107] /home2/USER/public_html/example.com/.htaccess: LoadModule not allowed here 
[Wed Dec 25 10:45:11 2013] [alert] [client 112.210.128.107] /home2/USER/public_html/example.com/.htaccess: LoadModule not allowed here 
[Wed Dec 25 10:47:39 2013] [error] [client 181.160.101.118] File does not exist: /home2/USER/public_html/example.com/es 
[Wed Dec 25 10:47:49 2013] [error] [client 112.210.128.107] File does not exist: /home2/USER/public_html/example.com/es 

我尝试了很多测试,但我不知道错误的确切行(但我认为是最后两行)

使用一些东西:RewriteCond%{REQUEST_FILENAME}上的RewriteEngine-f RewriteCond%{REQUEST_FILENAME}-重写规则^(.*)index.php?url=$1[L,QSA]看起来您的.htaccess中有
LoadModule
。你能在这里发布你完整的.htaccess吗?@anubhava我的客户说“我再次联系了帮助,一个人修复了。显然这与htaccess文件无关,是WordPress代码通过siteurl变量处理重定向。”这是真的吗?WordPress siteurl变量如何处理来自自定义页面的重定向?
RewriteRule ^$ http://example.info/es/test.php [P]
[Wed Dec 25 10:45:05 2013] [alert] [client 112.210.128.107] /home2/USER/public_html/example.com/.htaccess: LoadModule not allowed here 
[Wed Dec 25 10:45:11 2013] [alert] [client 112.210.128.107] /home2/USER/public_html/example.com/.htaccess: LoadModule not allowed here 
[Wed Dec 25 10:47:39 2013] [error] [client 181.160.101.118] File does not exist: /home2/USER/public_html/example.com/es 
[Wed Dec 25 10:47:49 2013] [error] [client 112.210.128.107] File does not exist: /home2/USER/public_html/example.com/es