Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7852319
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 2, 20262026-06-02T19:23:31+00:00 2026-06-02T19:23:31+00:00

I’m using ASP.NET 4 / VB.NET / IIS to build a web application. Folks

  • 0

I’m using ASP.NET 4 / VB.NET / IIS to build a web application. Folks will access the web application via a URL like so:

http://url.com/personname

So, for example, here is the urls for Jane Doe, John Doe, and James Doe respectively:

http://url.com/janedoe

http://url.com/johndoe

http://url.com/jamesdoe

I need to somehow pass them off (no matter what name is entered) to a default.aspx page which then pulls in the name portion of the url and uses it to perform a lookup against the database which contains info. about this particular person and displays a personalized page based on that information.

So, for example, Jane Doe visits:

http://url.com/janedoe

She is transparently redirected to default.aspx which pulls in her name (from the url above) and checks it against the database. Seeing that she has never before visited the site she is transparently redirected to welcome.aspx which asks her to register for an account, says, "Hello Jane!" and so on…

The next time Jane visits she goes to:

http://url.com/janedoe

She is transparently redirected to default.aspx which pulls in her name (from the url above) and checks it against the database. Seeing that she has visited before and has created an account she is transparently redirected to login.aspx which asks her to enter the authentication credentials she created last time.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-02T19:23:32+00:00Added an answer on June 2, 2026 at 7:23 pm

    First, you need to rewrite the request to Default.aspx. Depending on your IIS version (the following is for IIS 7.5), that is simple. In web.config, the rule (in section system.webServer) would be something like

    <rewrite>
        <rules>
            <rule name="test" enabled="true" stopProcessing="false">
                <match url="^([a-zA-Z]*)$" />
                <action type="Rewrite" url="Default.aspx?u={R:1}" />
            </rule>
        </rules>
    </rewrite>
    

    (or you can use the IIS manager). The regex [a-zA-Z] should, of course, be adapted to suit your business rules – you may want to allow numbers.

    That rewrites the request inside IIS – nothing is seen in the browser. Now you want to “transparently redirect” it, which means the URL in the browser should change depending on if the user already exists or not.

    To achieve that, in Default.aspx code behind you process Request.QueryString[“u”], follow by

    Response.Redirect("Welcome.aspx") or
    Response.Redirect("Login.aspx")
    

    depending on the database query result. If you don’t want to change the browser URL, use Server.Transfer instead of Response.Redirect.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

That's pretty much it. I'm using Nokogiri to scrape a web page what has
I have a string like this: La Torre Eiffel paragonata all&#8217;Everest What PHP function
We're building an app, our first using Rails 3, and we're having to build
I'm new to using the Perl treebuilder module for HTML parsing and can't figure
link Im having trouble converting the html entites into html characters, (&# 8217;) i
I would like to count the length of a string with PHP. The string
For some reason, after submitting a string like this Jack’s Spindle from a text
I am reading a book about Javascript and jQuery and using one of the
I've got a string that has curly quotes in it. I'd like to replace
I'm using v2.0 of ClassTextile.php, with the following call: $testimonial_text = $textile->TextileRestricted($_POST['testimonial']); ... and

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.