Hi, I just started ASP.NET MVC... I want to have my urls like this: www.site.com/page1 www.site.com/page2 etc I moved all views to Home folder, so now it's like www.site.com/home/page1 www.site.com/home/page2 But I want it without "/home/". How can I do that? P.S. Yeah, I know I can do www.site.com/page1/index www.site.com/page2/index But that's not good - creating separate directories for every page. Thank you!
Em i think you're missing one of the main points in MVC - URL routing As long as your controllers are setup and you have specified your URL routing rules in the global.asax file then you can have whatever url system you want
check msdn : msdn.microsoft.com/en-us/library/cc668201.aspx Another good resource would be Phil Haacks blog, google easy to find it..