301 Redirect to URL with named anchor using IIS
I am trying to figure out how I can perform a 301 redirect from: http://www.examplesite.com/news to http://www.examplesite.com#news using 开发者_运维百科IIS 6.0
Are there any issues associated with redirecting to a URL containing a hash that I should be aware of? Is it any different to performing a regular 301 redirect using IIS?
Thanks.
http://www.exmplesite.com#news
is not a valid URL, so you redirect will fail. The hash sign (#) specifies that after fetching the page, the browser should scroll to the anchor with the name specified after the hash.
See http://en.wikipedia.org/wiki/Fragment_identifier
精彩评论