且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

如何URL重写的作品?

更新时间:2023-11-26 23:06:16

你说的是服务器端的重写(如Apache国防部重写)?针对这一情况,在地址栏通常不会改变(除非进行重定向)。
或者,你在说什么重定向?这些都是因与HTTP code(301,302或307)和HTTP头的位置在服务器响应完成。

Are you talking about server-side rewrites (like Apache mod-rewrite)? For those, the address bar does not generally change (unless a redirection is performed). Or are you talking about redirections? These are done by having the server respond with an HTTP code (301, 302 or 307) and the location in the HTTP header.