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?

3 Answers 3


Of course there is! Go to http://mysite.com/_Layouts/AreaWelcomePage.aspx 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 (http://mysite.com/pages/default.aspx?contens=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! :)

  • 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. Commented Feb 29, 2012 at 15:56
  • @AbeMiessler How have you entered the URL? Like this: /_layouts/ap/myAppPage.aspx? Or like this: http://mysite.com/_layouts/ap/myAppPage.aspx?
    – user2536
    Commented Feb 29, 2012 at 16:27
  • The second example. Commented Feb 29, 2012 at 16:32
  • @AbeMiessler Looke at my updated answer :)
    – user2536
    Commented Feb 29, 2012 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
    Commented Aug 29, 2012 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

$site = Get-SPSite mysite_page
$web = $site.RootWeb
$folder = $web.RootFolder
$folder.WelcomePage = "myAppPage.aspx"

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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