Wednesday, April 18, 2012

SEO friendly URL (extensionless URL) not working in IIS 7

Currently i am working on a project in which i need to implement SEO friendly URLs. I done it and works fine in development server but when i tried to upload all stuffs on server and send request for SEO friendly URLs i found it gives me error 404 resource not found.

System configuration is
Windows Server 2008
IIS7
ASP.NET 4.0.30319


Solution is here,

Follow the steps:

1) Go to IIS and site application pool set to classic instead of integrated (Managed pipeline mode:).
2) Go to your site in IIS and open "Handler Mapping" section and add a "Wildcard Script Map..." Request path = * and Executables = 'C:\Windows\Microsoft.NET\Framework\v4.0.30319\aspnet_isapi.dll"
3) Restart your IIS and run your site.

Happy Coding :)

1 comment: