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
Apache 如何在web浏览器中隐藏重写的URL_Apache_Url_Mod Rewrite_Hide - Fatal编程技术网

Apache 如何在web浏览器中隐藏重写的URL

Apache 如何在web浏览器中隐藏重写的URL,apache,url,mod-rewrite,hide,Apache,Url,Mod Rewrite,Hide,我使用Apache的mod_rewrite将HTTP请求重定向到另一台服务器。我想保留客户端浏览器中的原始URL。现在,它在客户端浏览器中显示了重写的URL。在Httpd.conf文件中的配置如下所示。提前谢谢你 重新启动发动机 重写BASE/tpiaccs/ 重写规则/tpiaccs/uat/(*)http:///tpiaccs/uat/$1[NC,L]如果我没有记错,默认情况下它会使用外部重定向(隐式[R]标志)重写,除非您另有指定 这可能会满足您的要求: RewriteRule /tpia

我使用Apache的mod_rewrite将HTTP请求重定向到另一台服务器。我想保留客户端浏览器中的原始URL。现在,它在客户端浏览器中显示了重写的URL。在Httpd.conf文件中的配置如下所示。提前谢谢你

重新启动发动机 重写BASE/tpiaccs/
重写规则/tpiaccs/uat/(*)http:///tpiaccs/uat/$1[NC,L]

如果我没有记错,默认情况下它会使用外部重定向(隐式[R]标志)重写,除非您另有指定

这可能会满足您的要求:

RewriteRule /tpiaccs/uat/(.*) http:///tpiaccs/uat/$1 [P,NC,L] 
p应该让它在内部代理请求,而不是执行外部重定向

有关可用于URL重写的标志的详细信息,请参阅