开发者

301 Redirect to URL with named anchor using IIS

开发者 https://www.devze.com 2023-03-14 12:09 出处:网络
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

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

0

精彩评论

暂无评论...
验证码 换一张
取 消