cancel
Showing results for 
Search instead for 
Did you mean: 

will creating a subdomain facilitate asp.net login to a part of website?

tricia68
Member

Hi everyone, I'm a newbie here.  I'm learning to use asp.net because I'd like to have a section of my website which requires a login.  It looks like the easiest way to set up the login control involves using a page called login.aspx and either default.aspx or index.aspx.  I don't want to use those names because I already have a page called index.html, obviously, which is the homepage of the site as a whole. Apparently it's possible to rename the path through the index controller, but I'm looking for the easiest possible solution to the problem, to the point where I considered purchasing a second advanced web hosting package--this seems a pricey option.

 

It was suggested to me that I might try creating a subdomain and putting the .aspx pages in there.  Can anyone confirm whether this would solve the problem?  Any suggestions where to look for direction on doing this? 

 

Any thoughts much appreciated.

2 REPLIES 2

dave
Guru

Possibly the easist way would be to add a subdirectory and call it something like login, then place the index.aspx in there so that you can then login by going to www.yourdomain.com/login.

Personally though, there are far easier ways to secure the site than bt using asp.net. A simple .htaccess and corresponding .htpasswd file would do the job for you.

In fact, if you don't know how to script this, the Advanced Hosting has an interface that will create the files for you. See the Website Security tool in the website centre.

tricia68
Member
Thank you, Dave.  I'll take a look at that and see if it can do the job.