Using a folder name as a file parameter?

This is a discussion on Using a folder name as a file parameter? within the Windows Web Servers forums, part of the Web Server and Related Forums category; Hello all, Is it possible to configure a server to pass subfolder names under a certain folder as parameters to ...


Go Back   Usenet Forums > Web Server and Related Forums > Windows Web Servers

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 11-18-2003
ironcito
 
Posts: n/a
Default Using a folder name as a file parameter?

Hello all,

Is it possible to configure a server to pass subfolder names under
a certain folder as parameters to a file? For example:

.../search/shoes
would be interpreted by the server as
.../search/index.asp?query=shoes

Or:

.../product/0314
would become
.../product/productdetail.asp?productID=0314

This way, you can have simple URLs that point to a specific query,
search result, item info, etc that is retrieved from a database.
Besides the obvious simplicity or having a shorter URL, you could
eventually change your operating technology (in this case ASP) and
still keep your URLs valid. W3C rightly advocates unchanging,
not-technology-specific URLs, so this kind of technique would be
great.
Can it be done? Thanks in advance.

Diego
  #2 (permalink)  
Old 11-18-2003
johannes m.r.
 
Posts: n/a
Default Re: Using a folder name as a file parameter?

Yes, take a look at mod_rewrite.
If you just want to use "folders" as parameters for really existing
scripts look at the PATH_INFO environment variable.
Regards,
johannes
 


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 07:44 AM.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0