Home NewsX California Consumer Privacy Act (CCPA) Opt-Out Icon

California Consumer Privacy Act (CCPA) Opt-Out Icon

by info.odysseyx@gmail.com
0 comment 4 views


problem

Most of you might have experienced a situation where you have used IIS URL Rewrite to redirect traffic from one site to another. However, in some cases, the Rewrite rule does not work as expected and returns ‘HTTP Error 404.4 – Not Found’. The 404.4 status code means that there is no handler configured. This means that the file name extension of the requested URL does not have a handler configured on the web server to handle the request.

hridaydutta_0-1724145586617.png

For example, there are two sites hosted on IIS. Site1 is bound to port 81 and Site2 is bound to port 82. The requirement is that all requests coming to Site1 (port:81) should be rewritten to Site2 (port:82). The rule below is configured as follows:

http://localhost:82/{R:0}” appendQueryString=”true” />

way out

First, you need to make sure that you have the correct module installed in IIS. To do this, go to IIS Manager and open Modules.

hridaydutta_1-1724145586625.png

Make sure you have the correct URL Rewrite module installed within your module. You can get the latest IIS URL Rewrite module from this link.

URL Rewriting: Official Microsoft IIS Site

hridaydutta_2-1724145586628.png

If you have the correct modules installed as highlighted above, then next check the failed request tracing log for the request and make sure the correct rule is being called and the URL is being updated with the new rule.

hridaydutta_3-1724145586631.png

In this case, you can see that the “RewriteToPort82” rule is called and the request URL is changed. http://roalhost:82/. Also make sure HttpStatus=”404″ and HttpSubStatus=”4″.

hridaydutta_4-1724145586634.png

To resolve the issue, go to IIS Manager, open the Application Request Routing Cache module, and in the right-hand Actions pane, open Server Proxy Settings.

hridaydutta_5-1724145586638.png

hridaydutta_6-1724145586642.png

You can find the option to enable proxy in the Server Proxy Settings. Check the Enable Proxy checkbox and click Apply in the right Actions pane as indicated in the image below.

hridaydutta_7-1724145586645.png

After that, you need to restart IIS. This will resolve the URL rewriting issue. To learn more about URL rewriting in IIS, follow this article. Using the URL Rewrite Module | Microsoft Learn





Source link

You may also like

Leave a Comment

Our Company

Welcome to OdysseyX, your one-stop destination for the latest news and opportunities across various domains.

Newsletter

Subscribe my Newsletter for new blog posts, tips & new photos. Let's stay updated!

Laest News

@2024 – All Right Reserved. Designed and Developed by OdysseyX