Connecting Tech Pros Worldwide Help | Site Map

URL rewriting

Michael Appelmans
Guest
 
Posts: n/a
#1: Nov 18 '05
I'm trying to use a rule based URL rewrite application which uses
HttpApplication.RewritePath. I keep getting "rsource not found" error in
application when running on shared web host although the software runs fine on
my localhost. Is it possible that the web hosting service has configured
something in the machine.config file to disable URL rewriting? I have been
communicating with them but they seem clueless as to the cause.

Thanks for any insight.

--
Dabbler
Jeffrey Palermo [MCP]
Guest
 
Posts: n/a
#2: Nov 18 '05

re: URL rewriting


Michael,
Have you made any configuration changes to your local IIS? Did you map
all file extensions to ASP.NET in order to use URL rewriting? If so it may
be that your hosting provider is using IIS defaults.

Best regards,
Jeffrey Palermo

"Michael Appelmans" <mla@zitinko.com> wrote in message
news:MPG.1c114a797acabe249896ee@news.microsoft.com ...[color=blue]
> I'm trying to use a rule based URL rewrite application which uses
> HttpApplication.RewritePath. I keep getting "rsource not found" error in
> application when running on shared web host although the software runs[/color]
fine on[color=blue]
> my localhost. Is it possible that the web hosting service has configured
> something in the machine.config file to disable URL rewriting? I have been
> communicating with them but they seem clueless as to the cause.
>
> Thanks for any insight.
>
> --
> Dabbler[/color]


Michael Appelmans
Guest
 
Posts: n/a
#3: Nov 18 '05

re: URL rewriting


Hi Jeffrey

I'm using IIS defaults as I'm only rewriting for .aspx urls. I just wondered if
there might be something in their machine.config which disables url rewriting.

Thanks for the reply.

Michael

In article <ujJa4Ic1EHA.1448@TK2MSFTNGP10.phx.gbl>, "Jeffrey Palermo [MCP]"
<http://dotnetjunkies.com/weblog/jpalermo> says...[color=blue]
> Michael,
> Have you made any configuration changes to your local IIS? Did you map
> all file extensions to ASP.NET in order to use URL rewriting? If so it may
> be that your hosting provider is using IIS defaults.
>
> Best regards,
> Jeffrey Palermo
>
> "Michael Appelmans" <mla@zitinko.com> wrote in message
> news:MPG.1c114a797acabe249896ee@news.microsoft.com ...[color=green]
> > I'm trying to use a rule based URL rewrite application which uses
> > HttpApplication.RewritePath. I keep getting "rsource not found" error in
> > application when running on shared web host although the software runs[/color]
> fine on[color=green]
> > my localhost. Is it possible that the web hosting service has configured
> > something in the machine.config file to disable URL rewriting? I have been
> > communicating with them but they seem clueless as to the cause.
> >
> > Thanks for any insight.
> >
> > --
> > Dabbler[/color]
>
>
>[/color]

--
Dabbler
Jeffrey Palermo [MCP]
Guest
 
Posts: n/a
#4: Nov 19 '05

re: URL rewriting


Michael,
There isn't a setting in the machine.config to "disable" url rewriting
because it's custom code that does the rewriting. I understand that it's
hard to debug on a server that is not your own, but you can sprinkle your
code with Trace.Write() statements to help out with this. I have
encountered this error when I tried going to http://server/subFolder/ and
the default page, default.aspx did not exist or when the page I'm rewriting
to doesn't exist.

--
Best regards,
Jeffrey Palermo
Blog: http://dotnetjunkies.com/weblog/jpalermo


"Michael Appelmans" <mla@zitinko.com> wrote in message
news:MPG.1c156745bebe8f759896ef@news.microsoft.com ...[color=blue]
> Hi Jeffrey
>
> I'm using IIS defaults as I'm only rewriting for .aspx urls. I just[/color]
wondered if[color=blue]
> there might be something in their machine.config which disables url[/color]
rewriting.[color=blue]
>
> Thanks for the reply.
>
> Michael
>
> In article <ujJa4Ic1EHA.1448@TK2MSFTNGP10.phx.gbl>, "Jeffrey Palermo[/color]
[MCP]"[color=blue]
> <http://dotnetjunkies.com/weblog/jpalermo> says...[color=green]
> > Michael,
> > Have you made any configuration changes to your local IIS? Did you[/color][/color]
map[color=blue][color=green]
> > all file extensions to ASP.NET in order to use URL rewriting? If so it[/color][/color]
may[color=blue][color=green]
> > be that your hosting provider is using IIS defaults.
> >
> > Best regards,
> > Jeffrey Palermo
> >
> > "Michael Appelmans" <mla@zitinko.com> wrote in message
> > news:MPG.1c114a797acabe249896ee@news.microsoft.com ...[color=darkred]
> > > I'm trying to use a rule based URL rewrite application which uses
> > > HttpApplication.RewritePath. I keep getting "rsource not found" error[/color][/color][/color]
in[color=blue][color=green][color=darkred]
> > > application when running on shared web host although the software runs[/color]
> > fine on[color=darkred]
> > > my localhost. Is it possible that the web hosting service has[/color][/color][/color]
configured[color=blue][color=green][color=darkred]
> > > something in the machine.config file to disable URL rewriting? I have[/color][/color][/color]
been[color=blue][color=green][color=darkred]
> > > communicating with them but they seem clueless as to the cause.
> > >
> > > Thanks for any insight.
> > >
> > > --
> > > Dabbler[/color]
> >
> >
> >[/color]
>
> --
> Dabbler[/color]


Closed Thread