Click here to Skip to main content
15,798,066 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:

I am trying to use URL rewriting for a application pages but those are html pages (static site pages).

Here the code i am using in my global.asax file:

void Application_BeginRequest(object sender, EventArgs e)
       HttpContext context = HttpContext.Current;
       string file = Request.Url.LocalPath.ToLower();
       if (file.Contains("residential-treatment-program"))

its working and the page is redirecting from "/Plumfield/residences/residences.html" to "residential-treatment-program". But the issue is after rewriting the "residential-treatment-program" page lost his CSS ,Images and js.

Any Idea how to fix this?

Updated 10-Feb-14 8:19am

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900