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.
我认为IIS和web.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.