SunQuest
           Apache Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsSystem AdministrationApache Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
Get inside! Sample the range of functionality easily built with JMSL Library for Time Series Data Analysis, Heat Maps, Portfolio Optimization, Monte Carlo Simulation, Stock Price Charting and more. Download Now!
  #1  
Old June 6th, 2001, 09:11 PM
birdsky birdsky is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jan 2001
Location: Hong Kong or Austin, Texas
Posts: 14 birdsky User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Query info as path

I found that there're more webpages have the query for a server-side script written as path info.

For example:
Instead of writing
http://mysite.com/perl/scriptname?param1=good&param2=bad

it's written as
http://mysite.com/perl/scriptname/param1=good/param2=bad

And internally let mod_rewrite or Apache::Request or something similar to do the parsing.

I wonder if there's an advantage for that?

I also see some sites use ";" to seperate the parameters too. One reason I think it that the "&" is bad for wml page or displaying at browser, right? (i have to write &amp; to make it work for wml) But is that the only reason??

Thanks.

--
Bird

Last edited by birdsky : June 7th, 2001 at 02:36 AM.

Reply With Quote
  #2  
Old June 7th, 2001, 01:25 AM
freebsd freebsd is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jan 2001
Posts: 5 freebsd User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
>> I wonder if there's an advantage for that?

Search Engine friendly, that is all. It's a waste of your server resources if you must do it. If you want to see rewrite rule examples, do a search under my username in this forum.

>> &" is bad for wml page

Not just wml page. It's commonly used character for all web scripting languages including mod_rewrite. Yes, you almost always need to escape it.

Reply With Quote
Reply

Viewing: Dev Shed ForumsSystem AdministrationApache Development > Query info as path


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


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 On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 5 hosted by Hostway