简体   繁体   中英

ASP.NET MVC Lowercase URL doesn't work after Publishing

i have a ASP.NET MVC5 Site running successfully at www.hoxat.com. for SEO purposes , i have used Canonicalize Nuget Package and used following code

        routes.LowercaseUrls = true;
        routes.AppendTrailingSlash = false;
        routes.Canonicalize().Www().Lowercase().NoTrailingSlash();
        routes.IgnoreRoute("{resource}.axd/{*pathInfo}");
        routes.MapMvcAttributeRoutes();

During Debug / Release , the code works fine and all URL's are converted to lower case and slash is removed but after Publishing and uploading , these doesn't work.

我认为IISweb.config的问题..

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM