FacebookTwitter
Hatrack River Forum   
my profile login | search | faq | forum home

  next oldest topic   next newest topic
» Hatrack River Forum » Active Forums » Books, Films, Food and Culture » IIS / ASP question

   
Author Topic: IIS / ASP question
Lisa
Member
Member # 8384

 - posted      Profile for Lisa   Email Lisa         Edit/Delete Post 
When you go to IMdb.com and search for a movie or an actor, the URL of the pages don't have a query string in them, but they do have an identifier.

What I mean is, take these two examples:
See how they have the key values for each item in their database as part of the URL, but not as a query string (which would look like http://us.imdb.com/page.htm?name=0000113 or the like).

It appears as though each URL is its own directory (virtual or otherwise), even though it's clearly a single page that's data driven.

What I'm trying to figure out is if there's a way to achieve this in IIS. I imagine IMdb.com uses Apache or something Unix based, and they'd have a lot more leeway with that. With my knowledge of IIS, I can either have it with a query string that shows in the URL or without a query string, but with no identifier in the URL. I'd like to emulate what IMdb.com does.

Does anyone here know how I might be able to pull this off?

Posts: 12266 | Registered: Jul 2005  |  IP: Logged | Report this post to a Moderator
Dagonee
Member
Member # 5818

 - posted      Profile for Dagonee           Edit/Delete Post 
Lisa, the feature you're looking for is URL rewriting (it duplicates mod_rewrite in Apache). There are quite a few ISAPI implementations out there, some of them free, that will accomplish this.

Edit: Here's an overview. I can't speak to any of the specific suggestions, but the concept is well described.

Posts: 26071 | Registered: Oct 2003  |  IP: Logged | Report this post to a Moderator
Lisa
Member
Member # 8384

 - posted      Profile for Lisa   Email Lisa         Edit/Delete Post 
Thanks, Dagonee. I'll look that up.
Posts: 12266 | Registered: Jul 2005  |  IP: Logged | Report this post to a Moderator
fugu13
Member
Member # 2859

 - posted      Profile for fugu13   Email fugu13         Edit/Delete Post 
You can also do it without URL rewriting, by setting up a script to handle everything with a particular prefix, then just having it choose what to do based on the path. Many web frameworks (such as django, ruby on rails, and turbogears) are set up to do pretty URLs without any URL rewriting, and doing it that way is the rule, rather than the exception, with Java web applications. After a little googling, it looks like this is called something like wildcard mapping on IIS, but that rewriting is preferred in most situations because wildcard mapping has some limitations.
Posts: 15770 | Registered: Dec 2001  |  IP: Logged | Report this post to a Moderator
   

   Close Topic   Feature Topic   Move Topic   Delete Topic next oldest topic   next newest topic
 - Printer-friendly view of this topic
Hop To:


Contact Us | Hatrack River Home Page

Copyright © 2008 Hatrack River Enterprises Inc. All rights reserved.
Reproduction in whole or in part without permission is prohibited.


Powered by Infopop Corporation
UBB.classic™ 6.7.2