Velocity Reviews

Velocity Reviews (http://www.velocityreviews.com/forums/index.php)
-   ASP General (http://www.velocityreviews.com/forums/f65-asp-general.html)
-   -   Alternative querystring - using / instead of ? and & (http://www.velocityreviews.com/forums/t802752-alternative-querystring-using-instead-of-and-and.html)

royend@gmail.com 02-13-2007 06:19 PM

Alternative querystring - using / instead of ? and &
 
Hi.
Is is possible to pass parameters with this URL:
www.mysite.com/article/sports/football

instead of the usual method:
http://www.mysite.com/article.asp?ca...egory=football

And, if I need to add more parameters at a later time, may I then use
something like:
http://www.mysite.com/article/sports...21&language=EN

Also, I am using ASP, not ASP.NET.

Every advice appreciated.
Thanks.


Dave Anderson 02-13-2007 09:04 PM

Re: Alternative querystring - using / instead of ? and &
 
royend@gmail.com wrote:
> Hi.
> Is is possible to pass parameters with this URL:
> www.mysite.com/article/sports/football
>
> instead of the usual method:
> http://www.mysite.com/article.asp?ca...egory=football
>
> And, if I need to add more parameters at a later time, may I then use
> something like:
> http://www.mysite.com/article/sports...21&language=EN
>
> Also, I am using ASP, not ASP.NET.


You can use a custom 404 handler to parse requests in the manner you desire.
We used to do this a lot when our company used GroupWise instead of Outlook
(GroupWise apparently didn't know what a querystring was until a couple of
years ago, but didn't mind URLs with long paths).



--
Dave Anderson

Unsolicited commercial email will be read at a cost of $500 per message. Use
of this email address implies consent to these terms.



Farshad Hemmati 02-14-2007 12:58 AM

Re: Alternative querystring - using / instead of ? and &
 
The best way to do this is to use an ISAPI filter. There are a few free ones
out there, but I personally bought ISAPI_Rewrite which works really well and
is stable.

You can find it at:
http://www.helicontech.com/

If you search for "ISAPI URL rewrite" on google, you will find a few free
ones. If you couldn't find one, reply to this and I'll find you the free
ones as well. But I recommend the above one because it is more stable with
heavier loads.

PS. Don't use the 404 rewrites, because the user will actually be redirected
which will show an ugly URL when this happens.





<royend@gmail.com> wrote in message
news:1171390755.977309.236970@k78g2000cwa.googlegr oups.com...
> Hi.
> Is is possible to pass parameters with this URL:
> www.mysite.com/article/sports/football
>
> instead of the usual method:
> http://www.mysite.com/article.asp?ca...egory=football
>
> And, if I need to add more parameters at a later time, may I then use
> something like:
> http://www.mysite.com/article/sports...21&language=EN
>
> Also, I am using ASP, not ASP.NET.
>
> Every advice appreciated.
> Thanks.
>




Evertjan. 02-14-2007 03:50 PM

Re: Alternative querystring - using / instead of ? and &
 
Farshad Hemmati wrote on 14 feb 2007 in
microsoft.public.inetserver.asp.general:

> PS. Don't use the 404 rewrites, because the user will actually be
> redirected which will show an ugly URL when this happens.
>


But, as I do and you [general] should,
you use bitstream or server.transfer,
the original URL-string will be shown where no actual file exists.

All my pdf files are virtual,
as I first want to count, look at the referrer,
and then send the pdf bitstream with proper headers.

The same goes for nonexisting img-s where a standart jpg is shown
on some of my websites.

--
Evertjan.
The Netherlands.
(Please change the x'es to dots in my emailaddress)


All times are GMT. The time now is 04:36 AM.

Powered by vBulletin®. Copyright ©2000 - 2013, vBulletin Solutions, Inc.
SEO by vBSEO ©2010, Crawlability, Inc.


1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57