Forum Moderators: open

Message Too Old, No Replies

General Question Pages with no extensions.

         

andrewsmd

8:37 pm on Sep 15, 2009 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



I see pages all of the time where you are at www.example.com/somepage where somepage has no extension on it. How would I do that, i.e create a page in example.com that is called register.aspx but be able to link people to it by pointing them to example.com/register Thanks,

marcel

5:04 am on Sep 16, 2009 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



A quick and dirty option is to create folders with the required names and then have a single web page in them, default.aspx, eg. www.example.com/register/default.aspx

this way you can leave out the default.aspx and the page will show. (default.aspx must be set up as your default document though)

Another option is to look into ASP.Net Routing [msdn.microsoft.com].

andrewsmd

1:26 pm on Sep 16, 2009 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Since I only have to do this for one page, I'm going to use the first option. Thanks for the idea.