divyesh patel
-
10/29/2013 4:10:52 AM
Pages open only when extension is added in url
We have our site on kentico CMS 6.0. When we try to access any url then it dosn't open directly with the alias name. We get error or page not found. When we add .aspx extension to the page name in the url then the page opens correctly. Our site is hosted on IIS 6.
For example if we write www.test.com/home then we get error of page not found but when we add .aspx and access like www.test.com/home.aspx then page opens correctly.
for solving this issue i apply following Code
We added <modules runAllManagedModulesForAllRequests="true"> in web.config file, We added /kenticocms/cmspages/handler404.aspx in IIS 6.0 in 404 and 405 custom errors, we also added -> site manager >> URL and SEO >> Friendly URL extensions >> .aspx;; and site manager >> URL and SEO >> File Friendly URL extensions >> .aspx;; but still pages having no extension in url i.e. product name in url, are going to "page not found" and page is repetitively adding pagenotfound to url i.e. circular loading of page not found is happening infinitely. For example if we go to "www.abc.com/ProductName-A" then it shows "www.abc.com/PageNotFound?aspxerrorpath=/PageNotFound?aspxerrorpath........" in a loop as if page is called in circular manner.
|