Solved

How to parse URL to remove "?"

Posted on 2002-06-26
5
223 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

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
ASP CDO - Limiting Connections 3 65
Html CheckBox obtain Its Value 5 36
return false must be hit after calling certain command 10 42
Debugging Html 8 31
I have helped a lot of people on EE with their coding sources and have enjoyed near about every minute of it. Sometimes it can get a little tedious but it is always a challenge and the one thing that I always say is:  The Exchange of information …
I would like to start this tip/trick by saying Thank You, to all who said that this could not be done, as it forced me to make sure that it could be accomplished. :) To start, I want to make sure everyone understands the importance of utilizing p…
Although Jacob Bernoulli (1654-1705) has been credited as the creator of "Binomial Distribution Table", Gottfried Leibniz (1646-1716) did his dissertation on the subject in 1666; Leibniz you may recall is the co-inventor of "Calculus" and beat Isaac…
Nobody understands Phishing better than an anti-spam company. That’s why we are providing Phishing Awareness Training to our customers. According to a report by Verizon, only 3% of targeted users report malicious emails to management. With compan…

679 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