URL/Site Redirection

Posted on 2014-07-14
Last Modified: 2014-07-22
Looking to create a handful of fairly static webpages for a number of users. For example:

However instead of creating individual sites for each user I'm thinking about creating a single web page with a backend database storing the info that is unique to each user. I can then use a query string parameter to grab the appropriate information needed for the respective user.

1. is it possible to redirect '' to '' in IIS?
2. if so, how?
3. if the redirection mentioned above is possible is it also possible to perform dynamic redirections? For example, is it possible to redirect '<user#>' to '<user#>'
Question by:dowhatyoudo22
    LVL 21

    Expert Comment

    by:Randy Poole
    what you want to do is trap error 404[page not found] lookup the userx or whichever to determine if it is valid then do a response.redirect to the page pool/default.asp and storing userx as a session variable so it is not appended to the string.
    LVL 28

    Accepted Solution

    First make sure you have the IIS URL Rewrite module installed:

    Next take a look at the examples here (you can  determine the url based on query string)

    The above two steps should get you there (you will have to do a small amount of heavy lifting on your own - tweaking the template).

    Featured Post

    6 Surprising Benefits of Threat Intelligence

    All sorts of threat intelligence is available on the web. Intelligence you can learn from, and use to anticipate and prepare for future attacks.

    Join & Write a Comment

    Suggested Solutions

    Title # Comments Views Activity
    IIS Issue 7 74
    Change local server setting in php 6 34
    SpiceWorks - help desk system 2 37
    IIS Question 8 36
    These instructions are based on installing Owncloud on your new raspberry pi connected with a usb HDD. What do you need Part A? A Raspberry Pi, model B. A boot SD card for the Raspberry Pi. A usb HDD An Ethernet cable to connect to the lo…
    Lync server 2013 Backup Service Error ID 4049 – After File Share Migration
    The purpose of this video is to demonstrate how to set up the WordPress backend so that each page automatically generates a Mailchimp signup form in the sidebar. This will be demonstrated using a Windows 8 PC. Tools Used are Photoshop, Awesome…
    In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…

    745 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    15 Experts available now in Live!

    Get 1:1 Help Now