Topic Tags:
no tags for this item
Rank: Greenhorn
Joined: 1/4/2012(UTC) Posts: 7
|
Hi there! I would be interested in changing the start page (default.aspx). When I visit my website at: http://myhompage.com/I would like to get to the page http://myhompage.com/blog as default. Is there a better whay to do this, than post a redirict in: ~ / default.aspx Best regards Orgiz
|
|
|
|
|
|
Rank: Administration
Joined: 12/7/2008(UTC) Posts: 1,134   Thanks: 25 times Was thanked: 53 time(s) in 53 post(s)
|
Orgiz, You could do something in /themes/lollipop/pages/default.aspx like the following. Code:
HttpContext.Current.Response.Status="301 Moved Permanently";
HttpContext.Current.Response.AddHeader("Location", "/blog/");
Or you could do something in the global.asax on BeginRequest(). There's a similar process on this post.Good luck, Dave
|
|
|
|
|
|
Rank: Greenhorn
Joined: 1/4/2012(UTC) Posts: 7
|
Hi
When i putted it in global.asax the "~/members/login.aspx" stopped to work..
But when i putted it in: /themes/lollipop/pages/default.aspx
It worked perfectly!
Much obliged
//Orgiz
|
|
|
|
|
|
| Users browsing this topic |
|
Guest
|
Forum Jump
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.