This is topic IIS / ASP question in forum Books, Films, Food and Culture at Hatrack River Forum.


To visit this topic, use this URL:
http://www.hatrack.com/ubb/main/ultimatebb.php?ubb=get_topic;f=2;t=053502

Posted by Lisa (Member # 8384) on :
 
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?
 
Posted by Dagonee (Member # 5818) on :
 
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.
 
Posted by Lisa (Member # 8384) on :
 
Thanks, Dagonee. I'll look that up.
 
Posted by fugu13 (Member # 2859) on :
 
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.
 


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