Wordpress 在.htaccess帮助中使用代理显示特定URL而不重定向

Wordpress 在.htaccess帮助中使用代理显示特定URL而不重定向,wordpress,apache,.htaccess,proxy,Wordpress,Apache,.htaccess,Proxy,我需要显示WordPress博客中的特定页面(URLhttp://blog.site.com/blog/home/)在特定文件夹中(http://blog.site.com/blog2)而不更改URL 我正在.htaccess中使用此代码: <proxy http://blog.site.com/blog/home/> Allow from all </proxy> ProxyPass /blog2 http://blog.site.com/blog/hom

我需要显示WordPress博客中的特定页面(URL
http://blog.site.com/blog/home/
)在特定文件夹中(
http://blog.site.com/blog2
)而不更改URL


我正在.htaccess中使用此代码:

<proxy http://blog.site.com/blog/home/>
       Allow from all
</proxy>
ProxyPass /blog2 http://blog.site.com/blog/home/
ProxyPassReverse /blog2 http://blog.site.com/blog/home/

通融
ProxyPass/blog2http://blog.site.com/blog/home/
ProxyPassReverse/blog2http://blog.site.com/blog/home/
但它会显示一个页面未找到错误


有人知道如何做到这一点吗?

你似乎不需要mod_代理——有没有具体的原因?你不能简单地用内部重写吗?嗯。。。可能吧,但我在网上浏览解决方案时,偶然发现有人建议使用代理。我已经尝试过重写,但我所能做的就是更改URL,这是我想要避免的。:-)“我在.htaccess中使用此代码:”-还有一个问题,这些(mod_proxy)指令不能在.htaccess中设置-它们只能在服务器配置中设置。(我很惊讶你没有收到500错误?)。