Solution: Friendly URLs not Working on Shared Server

So, you have created an awesome website in ASP.Net using the awesome friendly URLs and it is all working on your machine, you upload the code to a shared server and your Friendly URLs stop working. Ahhhh! Something that you expected to work out of the box as it works on Microsoft Azure but it failed. In this post we will see the solution to Friendly URLs not working on shared server.

Below are a few of the troubleshooting tips that will help you figure out the issue –

  • Make sure the Application Pool of your website is set to .Net framework 4.0 (Integrated Pipeline). Many times, we just set this to .net Framework 4.0.

  • If the Application pool is already set to Integrated Pipeline Mode, the second step is to write the following code under <system.webServer> section in web.config file.
    1. <modules runAllManagedModulesForAllRequests="true"></modules>  

After you have made these two changes, friendly URLs should start working on your server. In case you know about any other methods to resolve this issue, do let me know via comments.

Cheers!

Rebin Infotech
Think. Innovate. Grow.