Solve the URL Path /eurl.axd was not found error(only enable net4.0)

Lionsure 2020-10-06 Original by the website

Because the website needs to change the domain name, I did a 301 redirect and started to transfer from the old domain name to the new domain name normally. But about 20 days later, I don't know why the problem happened for no reason: "Path /eurl.axd was not found" error is appeared when I visited the old domain name with IE. It can be transferred to the new domain name normally when accessed with Firefox browser, but a parameter is automatically added after the new domain name. This is not good for the PageRank of new domain name, because Search Engines think that the URL is different(including different parameters), the web page is different; this causes the PageRank of the old domain name to be passed to the url of new domain name with parameters, and this parameter is actually not a parameter of web page, it is said that it is an extended parameter of .net 4.0; and the user visits without this parameter, which will cause the PageRank to be scattered, and the old domain name will also expire, so the redundant parameters should be removed and only the PageRank of old domain name will be passed to the new domain name.

Finally, the extension function of .net to url was disabled, and the error of "Path /eurl.axd was not found" in the URL was solved and normal was restored. The following first introduces how to turn off the extension function of .net to url, and then share some precautions to avoid being deceived.

 

I. Solve the URL Path /eurl.axd was not found error

1. "Start" menu → Run (or press Windows logo + R) → input regedit → press Enter to open the "Registry Editor".

2. Expand [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\ASP.NET\4.0.30319.0] in turn(Windows server 2019 and above, copy HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\ASP.NET\4.0.30319.0 to the address bar and press enter).

3. Right-click in the right window, select "DWORD Value" (select "DWORD (32-bit) Value" for 64-bit systems), as shown in Figure 1:

Path /eurl.axd was not found error

Figure 1

4. Enter EnableExtensionlessUrls as the name, and the default value is 0 after it is built. Just keep this value, as shown in Figure 2:

EnableExtensionlessUrls

Figure 2

0 means to close the extension function of .net 4.0 to url, 1 means to open.

5. Restart iis and it will take effect. You can run IISRESET in "command prompt" to restart iis.

 

II. Pay attention to the problem

If the old domain name was accessed with a browser(including IE, Firefox, Google Chrome, etc.) before the "Path /eurl.axd was not found" error is not resolved, after the problem was resolved, and the system must be singed out or restarted, otherwise the previous error may occur. It is the caching reason.