Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to redirect HTTP in Win2008 R2 iis7/iis7.5 system

2025-01-18 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/01 Report--

This article will explain in detail how to redirect HTTP under Win2008 r2 iis7/iis7.5 system. The content of the article is of high quality. Therefore, Xiaobian shares it with you as a reference. I hope that after reading this article, you will have a certain understanding of related knowledge.

The most common redirection methods are: 301 redirect, 302 redirect and meta fresh.

When do I need to do a 301 redirect?

If you want to change the domain name, you can do 301 redirect to achieve search engine on your page is still valid and PR and other data unchanged on the search engine friendly effect, to ensure stable traffic.

If you have multiple homepage URLs, that is, visitors can reach the same page through different URLs, this situation is also PR scattered and outlinks scattered, you can determine the unique homepage URL by doing 301 redirects, unifying all PR and outlinks.

If you need to delete some pages inside the site, you can use 301 redirect to redirect the URL to the home page of the site.

If you have multiple domain names or different websites that need to point to the same website, you can do this with a 301 permanent redirect.

If you want to merge two websites, you want to make sure that links to expired URLs redirect to the correct page.

HTTP redirect

HTTP Redirect supports redirecting user requests to specific destinations. Use HTTP redirection when you want customers who might be using one URL to actually stop at another URL. From renaming your website to overcoming hard-to-spell domain names or forcing clients to use HTTPS, this feature is useful in many situations.

IIS's HTTP redirection feature is not installed by default and we need to manually install it.

On the desktop, right-click Computer, select Administration, expand Roles, select Web Server (IIS), and drag down to

The role service can be seen here http redirect whether installed If not installed, click Add Role Service above to install (no installation disk required)

setting and installation

Uploading... cancel

Uploading... cancel

After selecting, click Install, and you can use it without restarting your computer and IIS.

Here are the specific settings:

In IIS7, create a new website and bind the URL you want to turn to. If the grouping is based on regions, you will see the icon of "HTTP redirection" in IIS. Click to enter the settings interface and fill in the URL you want to turn to:

Just fill it out, you know!

Uploading... cancel

double-click to enter

If you need to adjust, for example: jb51.net to implement www.jb51.net baby naming http://www.bbqmw.net/qm_yeqm, you need to configure as follows

Select "redirect request to this destination" Example://www.jb51.net, because I am doing 301 redirect status code below select permanent (301) as shown in the figure:

Uploading... cancel

Then click "Apply" and you can.

In fact, many of the settings of iis7.5 are saved to web.config.

If anything, check the box to redirect all requests to the exact directory (rather than relative to the directory)

About Win2008 r2 iis7/iis7.5 system how to HTTP redirect to share here, I hope the above content can be of some help to everyone, you can learn more knowledge. If you think the article is good, you can share it so that more people can see it.

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report