Try our conversational search powered by Generative AI!

Possibility to override "default.aspx"?



When a user visits the bare domain url for an episerver site (CMS6R2), that is for example the default behaviour seems to be to redirect the user to the site defined as startpage in episerver.config. Is there anyway to override this behaviour, if I for example want to show a splash screen or do custom redirect?

May 08, 2013 10:35

A few simple ways:

- go to edit mode and set your startpage to be a Shortcut to any other page (will redirect every time someone visits your startpage - not recommended)
- put some logic in the OnInit/OnLoad methods in default.aspx to do a custom redirect or show a splash/popup if condition X is true.

You should also be aware that redirecting from the startpage might lead to URL confusion for search engines unless you properly handle your HTTP status codes. 


Edited, May 08, 2013 12:20

The safest way is for sure to put some logic in the OnInit/OnLoad methods in default.aspx as Arild says.

I did something once where a cookie was used to only show a splash screen once. You could easily have the splash as the default view always and act on a ?unsplash querystring parameter or similiar as an example of "X is true".

May 08, 2013 19:01
This topic was created over six months ago and has been resolved. If you have a similar question, please create a new topic and refer to this one.
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.