用用户名替换网址 [英] replacing url with user name
问题描述
你好,
我需要使用登录页面作为启动页面来更改网站的网站URL.
调试后,我的网址将为http://localhost:3478/now/login.aspx
因此,用户输入他/她的证书,成功登录后,他们将成为
重定向到另一个页面.该页面URL应命名为username.sample.aspx.
他/她的用户名应位于开头,即,如果名为john的用户输入了
凭据,网址应类似于 john .sample.com(示例是我的项目名称)
任何人都可以帮忙吗?
Hello,
I need to change my web site url of the website with login page as start up page.
Once I debug, I will have the url as http://localhost:3478/now/login.aspx
So, a user enters his/her cridentials, when he/she succesfully logged in, they will be
redirected to another page. That page url should be named as username.sample.aspx.
His/her username should be at the starting side i.e., if a user named john enters his
cridentials, url should look like john.sample.com (Sample is my project name)
Can anyone help please?
推荐答案
如果您实施成员资格,则将为您全部处理.
通常,用户将尝试转到某个页面(例如您的主页),然后将其重定向到登录页面.登录后,他将被带到他原本要查找的页面.
请参阅此处:成员资格简介 [
If you implement Membership, then it will all be handled for you.
Normally, the user will try to go to a page - your home page for example - and be redirected to the log in page. When he has logged in, he is then taken to the page he was originally seeking.
See here: Introduction to Membership[^]
这篇关于用用户名替换网址的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!