Site structure
Version 4.x > Site structure > Default alias path is overwritten by page not found URL View modes: 
User avatar
Member
Member
stt-swisstxt - 8/30/2011 6:53:56 AM
   
Default alias path is overwritten by page not found URL
Hi there

I searched the web for help and couldn't find any, so I hope you will be able to help me.

During developing a website with Kentico 4.1 I turned off the standard error pages to be able to define custom URL paths per page that let me navigate via www.domain/news f. ex. (As it is written in kentico-guides).

Then I made a custom error page (also according to the guide) to be shown when an invalid URL is called. I defined it in "SiteManager ->Settings -> Web site -> Page not found URL".

This works great but now my home-page, the page that is defined in the "Default alias path", creates a permanent Redirect (302) to the ErrorPage.. everytime the site is called it redirects to the errorpage I created and I cannot find out why.

hoping for answers

TS

User avatar
Member
Member
stt-swisstxt - 9/1/2011 1:26:57 AM
   
RE:Default alias path is overwritten by page not found URL
No replies so far :(

I'm still having the problem.
The Home-page of my website (/default.aspx) can be called fine, but as soon as i specifie a "Page not found URL", the default.aspx redirects to this errorpage. Firebug tells me, that the default.aspx responses with a 302 and the Errorpage..

I have no clue about what could be the problem.

User avatar
Kentico Developer
Kentico Developer
kentico_ivanat - 9/1/2011 2:09:10 AM
   
RE:Default alias path is overwritten by page not found URL
Hi,

could you please share with as the domain name of your site?

In the meantime, could you please try to set another page (for example some blank page) as a Default alias path?

Maybe there is some error on your current default page and it causes the redirection.

Thank you for information.

Best regards,
Ivana Tomanickova

User avatar
Member
Member
stt-swisstxt - 9/2/2011 1:57:32 AM
   
RE:Default alias path is overwritten by page not found URL
Hello

Creating another empty start page didn't work. As soon as a Page not found URL is defined, the new startpage also redirects to the errorpage.

The domain of my site is www.untertitelung.ch. The default alias path is /MainNav/Home. The default page is /default.aspx. The error page is in /Errorpages/Errorpage.

Obviously the page not found URL is not defined at the moment, it is beeing tested in our development area.

thanks for your effort

Tobias Stern

User avatar
Kentico Developer
Kentico Developer
kentico_ivanat - 9/2/2011 2:35:32 AM
   
RE:Default alias path is overwritten by page not found URL
Hi,

may I ask you to answer following questions?

1. Could you please check if default.aspx page is enabled on your IIS?

2. What version of IIS/.NET are you using on your server?
http://technet.microsoft.com/en-us/library/cc754807%28WS.10%29.aspx

3. Does the default page exist in your project folder?

4. Have you configured extensionless or are you using some custom extensions?

5. Would it be possible to grant us with an access on your development server, where we can see the redirection issue? I tried to reproduce it on my environment, but have no luck.

6. Is your server configured as a full trust or medium trust? Is virtual path provider running on your server?

Please send an email with login information to support@kentico.com (if it is possible) with reference to this thread.

Thank you.

Best regards,
Ivana Tomanickova

User avatar
Member
Member
stt-swisstxt - 9/2/2011 3:55:58 AM
   
RE:Default alias path is overwritten by page not found URL
Hi there

I was actually just able to solve the problem! I was looking through some guides for extensionless urls and on one of them i found the solution:

SiteManager --> Settings --> URLs: The field "friendly URL extensions" contained the value ".aspx" (inherited from the global settings). I simply erased the value and saved and now the Startpage shows up fine.

This problem was probably caused by my lack of understanding the english settings.
Thank you for your help, Ivana. Your question about extensionless led me to the solution :)

Best regards
Tobias Stern

User avatar
Member
Member
chrisIsMe - 3/12/2012 4:16:54 PM
   
RE:Default alias path is overwritten by page not found URL
Hello,

I actually have this exact same issue, but strangely only on my new host not on my old host.

I have literally just copied the site and db to a new host, and get page not found instead of default.

Like the above if I remove the "page not found" it works, equally if I remove the friendly URL extensions it also works.

I'm keen to understand why I had to change this though? As on my old host I did not make these changes?

Can a Kentico rep possibly answer this?

PS, I'm on Kentico vs 4.0.

User avatar
Kentico Developer
Kentico Developer
kentico_ivanat - 3/19/2012 4:09:55 AM
   
RE:Default alias path is overwritten by page not found URL
Hi,

this may be caused by your IIS version. In IIS version 7, is needed following key in the web.config file, but I am not sure if this was supported in Kentico version 4.x.


<system.webServer>
....
<httpErrors existingResponse="PassThrough" />
<modules runAllManagedModulesForAllRequests="true">
...
</system.webServer>


IIS 7 configuration

Best regards,
Ivana Tomanickova