0

I have started a new angularjs SPA with Microsoft ASP.net WEBAPI. My SPA app folder resides on the server parallel to APIs folder. Hence my index file is in app folder. I right clicked on the index.html file and set it as Starter Page. The problem is when I run the app it shows all complete URL. like this

http://localhost:1540/Public/app/index.html

How do I hide it and only show

http://localhost:1540/

while running my index page as a starter page. It will be a problem when I deploy.

ahmadalibaloch
  • 5,851
  • 2
  • 50
  • 59

1 Answers1

1

You have a few options. URL Rewriting, manipulating the MVC Routing system to serve your file or as stated here return the file through MVC i.e. your HomeController's Index Action.

Community
  • 1
  • 1
Judge Bread
  • 501
  • 1
  • 4
  • 13