Welcome Guest! To enable all features please Login or Register.

Notification

Icon
Error

Topic Tags: no tags for this item
Orgiz
#1 Posted : Wednesday, January 18, 2012 7:06:40 PM(UTC)


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
Dave Burke
#2 Posted : Wednesday, January 18, 2012 10:21:48 PM(UTC)


Rank: Administration

Joined: 12/7/2008(UTC)
Posts: 1,134
Man
United States

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
Orgiz
#3 Posted : Friday, January 20, 2012 5:11:02 AM(UTC)


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
Rss Feed  Atom Feed
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.

Powered by YAF 1.9.6.1 | YAF © 2003-2012, Yet Another Forum.NET
This page was generated in 0.134 seconds.
Copyright © 2008-2012 Sueetie LLC. All rights reserved.
Sueetie