SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

So basically when someone goes to:

I would like to show an Application Page that I have created, without the giant URL. Example of the giant URL :

Is there any way for me to do this?

share|improve this question

Of course there is! Go to and change the URL.

Or via the UI:

Site actions > Site Settings > User Interface > Welcome Page and change the URL.


I just tried myself and I see that none of them work. It seems like that the page has to reside in the content database and not just the domain.

I found a workaround though. On your landingpage, you can insert a HTML-Formular webpart in which you can write some javascript which will redirect the user.

Another option is to develop a webpart which automatically redirects to the given application page of your choice.

With either of these 2, you of course can't go to the page and edit it after they are inserted, as they will redirect you ASAP. This can be countered by entering the URL of the set landing page and then add ?contents=1 ( which will open a page telling you which webparts are on the page, and through that you can remove them, in case you don't want it to redirect any more.

Hope this helps! :)

share|improve this answer
When I try to do that I get the error: The specified welcome page is not valid or does not exist within the current site. I have confirmed that I can get to the URL through browser. – Abe Miessler Feb 29 '12 at 15:56
@AbeMiessler How have you entered the URL? Like this: /_layouts/ap/myAppPage.aspx? Or like this: – Daniel Ziga Feb 29 '12 at 16:27
The second example. – Abe Miessler Feb 29 '12 at 16:32
@AbeMiessler Looke at my updated answer :) – Daniel Ziga Feb 29 '12 at 17:05
Can you please explain your answer in more detail? I am also trying to do this.I am trying to follow your suggestion of entering a javascript in the landing page. Please elabrote this. thank you in advance. – user10416 Aug 29 '12 at 23:56

Found a solution:

1) First create a page to handle the redirection

2) Then create a module to deploy this file

3) Then change the welcome page

All with c# and without publishing sites.

See the complete solution here: Application page as home page

share|improve this answer
$site = Get-SPSite mysite_page
$web = $site.RootWeb
$folder = $web.RootFolder
$folder.WelcomePage = "myAppPage.aspx"
share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.