URL rewriting with nested urls

Anubhav Sharma asked on September 4, 2014 10:19

Hi,

Login Page URL : https://localhost/X/home/Login.aspx?ReturnUrl=%2fX%2fSiteA%2f

I am facing issue with the url rewriting system. If I put a page(xyz.aspx) in a folder (xyz). The URL formed to access the same is as below : http://localhost/X/SiteA/xyz/xyz.aspx

While logged in, I am able to access the page without any issue. However, the problem occurs when I sign out of the site. The redirection occurs to the following url : https://localhost/X/home/SiteA/Login.aspx?ReturnUrl=%2fX%2fSiteA%2fXYZ%2fXYZ.aspx which is a 404 not found.

If I trim the 'SiteA' part from the above URL, it works fine and move to login page.

I have multiple sites working under the same domain.

IMPORTANT : This problem occurs only when I place the aspx page inside a folder. If I do not use the folder structure, then the things work fine.

Can somebody please help me tame this issue ? Any help would be appreciated.

Thanks.

Recent Answers


Brenden Kehren answered on September 4, 2014 14:58

If you don't want the URL rewrite engine to process specific folders, you have to exclude them in the Settings>URLs and SEO>URL format>Excluded URLS and enter your folder(s).

0 votesVote for this answer Mark as a Correct answer

   Please, sign in to be able to submit a new answer.