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 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 time, 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.
After you have made these 2 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.