Welcome to WebmasterWorld Guest from 3.226.251.81

Forum Moderators: ocean10000

Message Too Old, No Replies

General Question Pages with no extensions.

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

Senior Member

WebmasterWorld Senior Member 10+ Year Member

joined:June 10, 2008
posts: 1130
votes: 0


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,
5:04 am on Sept 16, 2009 (gmt 0)

Senior Member

WebmasterWorld Senior Member 10+ Year Member

joined:Feb 1, 2005
posts:733
votes: 0


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].

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

Senior Member

WebmasterWorld Senior Member 10+ Year Member

joined:June 10, 2008
posts:1130
votes: 0


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