Results 1 to 6 of 6
  1. #1
    Join Date
    Jan 2007
    Location
    UK
    Posts
    11,434
    Provided Answers: 10

    Unanswered: URL Redirection on Windows, with a twist...

    I think this is the best section to post this question...

    So I have built a web application for a client that produces barcodes (QR codes) with URLs, complete with querystrings, embedded. The system is to be used at various locations in the UK and now they have a new location that won't always be internet enabled.

    So...

    ...I need a way of redirecting a URL, inclusive of the querystring, to a local site address. I will probably run the site through IIS on a local cached db copy.

    e.g. http://example.com/a?b=c&d=fghijk&l=1234
    redirects to
    e.g. http://localhost/somesite/a?b=c&d=fghijk&l=1234

    I am aware of the hosts file but can't seem to get it to pass the querystring.

    Hummmm
    George
    Home | Blog

  2. #2
    Join Date
    Nov 2004
    Location
    out on a limb
    Posts
    13,692
    Provided Answers: 59
    ..set up a local server?
    use a local config file that tells what server / domain to use
    I'd rather be riding on the Tiger 800 or the Norton

  3. #3
    Join Date
    Jan 2007
    Location
    UK
    Posts
    11,434
    Provided Answers: 10
    Local config file as in htaccess at root or..?
    George
    Home | Blog

  4. #4
    Join Date
    Jan 2007
    Location
    UK
    Posts
    11,434
    Provided Answers: 10
    * bump *
    George
    Home | Blog

  5. #5
    Join Date
    Feb 2004
    Location
    In front of the computer
    Posts
    15,579
    Provided Answers: 54
    When in doubt, try a 180 spin!

    Have ALL of the machines access localhost/somesite/a?b=c&d=fghijk&l=1234 then write a simple handler that will redirect the query when appropriate to the remote URL and process the query locally when that is appropriate. This keeps the app simple, and makes the local IIS clean too.

    -PatP
    In theory, theory and practice are identical. In practice, theory and practice are unrelated.

  6. #6
    Join Date
    Jan 2007
    Location
    UK
    Posts
    11,434
    Provided Answers: 10
    Sadly that approach isn't appropriate in this scenario. The barcodes are supposed to be customer readable. A non-logged in user, i.e. a customer, gets a cut down version of the information available on each barcode and logged in users (admins) get the full spec.
    George
    Home | Blog

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •