You could add a regular ASP.NET handler-mapping for default.aspx and in
that file make a Server.Transfer if you don't want to use the
routing-module. Just define the handler before the MonoRailHttpHandler
in your web.config.
On 2009-10-15 15:06, Daniel Hölbling wrote:
This is probably not
Hi,I'm facing a bit of a problem and maybe you can help me out.
I'm running a MonoRail application that has no routing configured. So I'm
using MRs standard Area/Controller/Action.aspx scheme.
(I changed the MonoRail handler to listen for .aspx requests).
Now, the problem here is that
http://www.kenegozi.com/blog/2009/02/10/monorail-routing-and-the-homepage-routing-rule.aspxhttp://www.kenegozi.com/blog/2009/02/10/monorail-routing-and-the-homepage-routing-rule.aspx
On Thu, Oct 15, 2009 at 2:18 PM, Daniel Hölbling hoelblin...@gmail.comwrote:
Hi,I'm facing a bit of a problem
Thanks ken!
On Thu, Oct 15, 2009 at 2:58 PM, Ken Egozi egoz...@gmail.com wrote:
http://www.kenegozi.com/blog/2009/02/10/monorail-routing-and-the-homepage-routing-rule.aspx
http://www.kenegozi.com/blog/2009/02/10/monorail-routing-and-the-homepage-routing-rule.aspx
On Thu, Oct 15, 2009 at
This is probably not possible without the routing module is it?
Since I'm not using it I hoped I could get around that..
greetings Daniel
On Thu, Oct 15, 2009 at 3:03 PM, Daniel Hölbling hoelblin...@gmail.comwrote:
Thanks ken!
On Thu, Oct 15, 2009 at 2:58 PM, Ken Egozi egoz...@gmail.com
We normally just put a normal default.aspx file into the root of the web app
and have it redirect to the requested URL (/Home/Index.aspx in your case).
Symon.
Symon Rottem
http://blog.symbiotic-development.com
On Thu, Oct 15, 2009 at 3:06 PM, Daniel Hölbling hoelblin...@gmail.comwrote:
This
actual 302 redirect? or server side rewriting?
On Thu, Oct 15, 2009 at 3:30 PM, Symon Rottem s.rot...@gmail.com wrote:
We normally just put a normal default.aspx file into the root of the web
app and have it redirect to the requested URL (/Home/Index.aspx in your
case).
Symon.
Symon
I do this (actual code from my site, changed redirect string):
Default.aspx
--
%@ Page Language=vb %
!DOCTYPE html
html
head runat=server
titleDefault/title
script type=text/VB runat=server
Public Sub Page_PreInit(ByVal sender As Object, ByVal e As EventArgs)
Pretty much exactly the way I do it too.
Symon.
Symon Rottem
http://blog.symbiotic-development.com
On Thu, Oct 15, 2009 at 4:06 PM, Bill Barry after.fall...@gmail.com wrote:
I do this (actual code from my site, changed redirect string):
Default.aspx
--
%@ Page Language=vb %
!DOCTYPE
I, personally, don't like it at all.I like that the url (visible in the
address bar) of the site's homepage is what it is.
I also suspect that redirecting would yield SEO penalty
Rewriting (or routing) to the correct location is pretty simple in Monorail,
and even in bad old WebForms (using
Go ahead, Server.Transfer should work in place of Response.Redirect.
Ken Egozi wrote:
I, personally, don't like it at all.
I like that the url (visible in the address bar) of the site's
homepage is what it is.
I also suspect that redirecting would yield SEO penalty
Rewriting (or routing)
No Server.Transfer will throw the UrlTokenizer at you since it can't break
the Url down into /Controller/Action
I solved the whole thing by writing a custom IHttpHandler that accepts the
path /Default.aspx (since *.aspx is mapped to MR) and redirects to
/Home/index.aspx
Yet, I'm not totally happy
Daniel,
I thought there was a way of configuring IIS to by default go to a
certain url.
Anyway, I haven't tested this but in theory should work, have you
tried to configure httpHandlers so that:
httpHandlers
add path=*.vm verb=* type=System.Web.HttpForbiddenHandler
validate=true/
Oh, right. I just didn't find the PageHandlerFactory in my hurry (site was
online but only giving an error).My solution is somewhat more blunt so I'll
update it to yours tomorrow:
httphandlers
add verb=* path=/default.aspx
type=ImagineClub.Web.RedirectionHandler, ImagineClubWeb/
add
14 matches
Mail list logo