0

On my project I have a folder where I have to place different sites, each site is developed with angular and contains .html files.

That's the path of one site, and that it Works:

  • ~/Sites/One/Index.Html
  • www.Mystye.com/Sites/One/Index.Html

But I want this other Path:

  • www.Mystye.com/SiteOne/ and return the content from :> ~/Sites/One/Index.Html

I don't know how to do that because I need too keep referenced all content inside the folder "~/Sites/One" of the project.

Creating a MapPageRoute, will allow me to do that, but the problem is that the web content will try to load files from "/SiteOne/js/xxxx.js" and not from "/Sites/One/js/xxxx.js". Maybe ther's a way to redirect all requests that start with "/SiteOne/" ...

user1520494
  • 1,134
  • 2
  • 11
  • 27
  • Just a thought, but wouldn't it be simpler just to copy the content of the HTML files into views, which would allow you to configure your routes any way you want (including with .html extension). – NightOwl888 Jan 10 '15 at 00:06
  • Yeah, you are right that's what I thought... but the problem is that every time that the company that develops the front-end have a new version... makes me crazy raplacing/updating files... – user1520494 Jan 12 '15 at 07:44
  • I have founded this solution and it works for me http://stackoverflow.com/a/3952250/1520494 – user1520494 Jan 13 '15 at 07:30

0 Answers0