[英]Redirect 301 on Windows Server and ASPX
how can I redirect the URL of my old site from: 如何从以下位置重定向我的旧站点的URL:
http://www.example.com/ subdirectory/page.asp ?variable=value http://www.example.com/ 子目录/page.asp?variable = value
to 至
http://www.example.com/page . http://www.example.com/page 。 aspx ?variable=value
aspx ?variable =值
Server Windows with 服务器Windows
As i read : 如我所读:
"Url rewrite is one of the best and quickest ways to improve the usability and search friendliness of your site. It can also be the source of near-unending misery and suffering." “ URL重写是提高网站可用性和搜索友好性的最好,最快的方法之一。它也可能是无休止的痛苦和苦难的根源。”
So be aware that if you do too much redirection... you'll mess everything up, make it simple. 因此请注意,如果您进行过多的重定向……您会搞砸一切,使其变得简单。
http://www.iis.net/learn/extensions/url-rewrite-module/creating-rewrite-rules-for-the-url-rewrite-module http://www.iis.net/learn/extensions/url-rewrite-module/creating-rewrite-rules-for-the-url-rewrite-module
Try to use regular expressions, and make the least number of redirection you can. 尝试使用正则表达式,并尽可能减少重定向次数。 The more you can do with a single redirection, the best it is.
单个重定向可以做的越多,越好。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.