Technical support This forum is closed.
Version 1.x > Technical support > Navigating to pages not controlled by CMS View modes: 
User avatar
Member
Member
trint99 - 9/14/2006 6:09:03 PM
   
Navigating to pages not controlled by CMS
Using version 1.9.2405.

We have some logic pages that are not part of the CMS system. (These pages do not need to have managed content.) But when a request is made to these pages, Kentico displays the default page instead.

Here is an example:

I have a form that enables a user to email the URL of the previous page to someone. That form does not need to be part of the CMS system, but does reside within the application.

http://mysite.com/Help/EmailForm.aspx?some=data

There are other pages that ARE content managed in that same directory (created through Kentico).

http://mysite.com/Help/ContactUs

I can navigate to /Help/ContactUs just fine. But when I try to navigate to /Help/EmailForm.aspx I get the default page instead.

I tried creating a page (Menu Item) in Kentico with a type of "Page URL Address" and a URL of Help/EmailForm.aspx. But I get the same result: Navigating to /Help/EmailForm takes you to the home page.

User avatar
Guest
admin - 9/18/2006 10:31:58 AM
   
Re: Navigating to pages not controlled by CMS
Hello,

you may need to exclude the page from URL rewriting engine:

<add key="CMSExcludedDirectories" value="/Help/EmailForm;/excludedpage2" />

Best Regards,

User avatar
Member
Member
trint99 - 9/19/2006 11:21:00 PM
   
Re: Navigating to pages not controlled by CMS
Excluding the page itself doesn't work. That just causes the "this is an empty ASPX" message to be displayed.

The problem is accessing any content inside the folder that Kentico considers a folder object.

I can place my aspx page in any folder that is not listed in Kentico and it works fine.

http://mysite.com/UnmanagedPages/EmailForm.aspx works.

But, as I said, Help is a folder object in my Kentico tree. Thus when it can't find a managed page in that folder called EmailForm.aspx, it kicks you back to the home page, even if that file does exist on disk.

http://mysite.com/Help/EmailForm.aspx does not work.

For now, I will just have to be content to have unmanaged pages segregated from managed pages.

User avatar
Guest
admin - 9/20/2006 8:00:53 AM
   
Re: Navigating to pages not controlled by CMS
Could you please write me what value you have in your web.config, in the CMSFriendlyURLStyle value?

User avatar
Member
Member
trint99 - 9/20/2006 4:16:50 PM
   
Re: Navigating to pages not controlled by CMS
<add key="CMSFriendlyURLStyle" value=""/>
<add key="CMSGenerateFriendlyUrlFiles" value="true" />
<add key="CMSExcludedDirectories" value=""/>

<customErrors mode="Off" />

User avatar
Guest
admin - 9/25/2006 6:08:04 PM
   
Re: Navigating to pages not controlled by CMS
Hello,

I have just tested it with your settings. I have created an unmanaged page /test/newpage.aspx and I had to set the CMSExcludedDirectories value to "/test" so that the page is not redirected to the root.

Alternatively, you can create a folder /Help/EmailForm and place the page emailform.aspx inside this folder. Then, you can exclude only /help/emailform instead of whole /help folder.

Best Regards,