Solved

How to parse URL to remove "?"

Posted on 2002-06-26
5
219 Views
Last Modified: 2008-03-10
Internet search engines do not support (or do not want to support / browse) dynamic webpages. Basically, pages with dynamic content often have URL like "filename.asp?par1=val1&par2=val2..."

Does someone know a tool for IIS server allowing to ask for a URL like "filename.asp/1-2/2-4" in order to get the same result as the request of the URL "filename.asp?par1=val1&par2=val2"

I supposed a conversion need to be done by the webserver.

Thank you in advance for your help.
0
Comment
Question by:joel011197
5 Comments
 
LVL 18

Accepted Solution

by:
bruno earned 50 total points
ID: 7110323
You need to use a custom 404 page.


more info:

http://searchengineforums.com/Forum21/HTML/000246.html
0
 

Expert Comment

by:eswaraprasadh
ID: 7110350
hi joel,
 U can pass variables from one page to another using three ways.

1> thru querystring
2> using forms elements either by hiding/not hiding
3> session variables

The first one is easier unless the length of the querystring doesnt exceed the limit of

the second one calls for adding new form elements when the parameters increases.

the third one is very simple, but trusting session management is a tricky one.

i think u would have understood by now dynamic pages neednt have to url as "filename.asp?par1=val1&par2=val2..."

If ur querystring exceeds the limit or u dont want the web surfers to change the querystring go for passing the parameters using form elements [hiding them will be a good strategy].

regds
eswara prasadh
0
 
LVL 11

Expert Comment

by:mouatts
ID: 7111309
filename.asp/1-2/2-4 is an illegal URL so it aint gonna work too well.

As bruno has suggested you can use the custom 404 page trick. If you look around TA there is some example code that I wrote late last week.

This would basically allow you to put false links in for example www.mydomain.com/myfile_1_1.html which would actually direct it to myfile.asp?id1=1&id2=1 or something along those lines.


Steve
0
 
LVL 4

Expert Comment

by:Wakie
ID: 9355541
It appears this question has been abandoned.

I will leave a recommendation in the Cleanup topic area that this question will be:

- Points to brunobear -

Please leave any comments here within the next seven days.

DO NOT ACCEPT THIS COMMENT AS AN ANSWER!

Wakie,
EE Cleanup Volunteer.
0
 

Author Comment

by:joel011197
ID: 9360707
brunobear's answer was ok, however I fnally found a better solution using ISAPI_Rewrite. This solution seems to be very good regarding performance and any URL configuration can be handled.
0

Featured Post

Do You Know the 4 Main Threat Actor Types?

Do you know the main threat actor types? Most attackers fall into one of four categories, each with their own favored tactics, techniques, and procedures.

Join & Write a Comment

I was asked about the differences between classic ASP and ASP.NET, so let me put them down here, for reference: Let's make the introductions... Classic ASP was launched by Microsoft in 1998 and dynamically generate web pages upon user interact…
This demonstration started out as a follow up to some recently posted questions on the subject of logging in: http://www.experts-exchange.com/Programming/Languages/Scripting/JavaScript/Q_28634665.html and http://www.experts-exchange.com/Programming/…
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.
This video demonstrates how to create an example email signature rule for a department in a company using CodeTwo Exchange Rules. The signature will be inserted beneath users' latest emails in conversations and will be displayed in users' Sent Items…

746 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

9 Experts available now in Live!

Get 1:1 Help Now