【发布时间】:2011-09-11 15:24:13
【问题描述】:
据我了解,StackOverflow 中的问题格式如下
http://stackoverflow.com/questions/{question-id}/{slug-made-from-question-title}
所以基本上问题是使用 question-id 检索的。所以我给蛞蝓的任何价值都是无关紧要的。
首先我想知道这个理解是不是错了:)
我有一个网址
http://stackoverflow.com/questions/6291678/convert-input-string-to-a-clean-readable-and-browser-acceptable-route-data
然后我像这样手动更改了 slug。
http://stackoverflow.com/questions/6291678/naveen
但它变成了原来的蛞蝓。 Firebug 向我展示了更改后的 URL 上的永久重定向 301。如何实现这个功能?
【问题讨论】:
-
有一分钟我以为这是一个元问题:-)
-
@Jodrell:对我来说,SO 本身就是一本关于如何构建网站的精彩书籍。我总是把它作为我的基准:)
标签: c# asp.net redirect http-status-code-301 url-redirection