Web Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
User Name:
Password:
Remember me
 
Go Back   Dev Articles Community ForumsWeb DesignWeb Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Display Modes
 
Unread Dev Articles Community Forums Sponsor:
  #1  
Old January 14th, 2006, 12:43 AM
Tylerious Tylerious is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Jul 2005
Posts: 15 Tylerious User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 4 h 37 m 15 sec
Reputation Power: 0
Dynamic URL-based scripting

Ever used LiveJournal or Wikipedia? http://livejournal.com/ returns the main site; http://livejournal.com/user/username returns the main page for user username; http://livejournal.com/user/username/calendar/2004/01/23 returns all entries from January 23 for user username.

Obviously it's impractical create a directory for every day of the year for every user and so on, so I'm guessing they somehow pass the url to a script (LiveJournal uses Perl; Wikipedia uses PHP), which parses the URL in variables and formats the appropriate page, etc.

My question is how does one set it up to perform this way? Of course it's possible to set up as http://livejournal.com/index.pl?page=calendar&month=01&day=23, but it's rather ugly (not to mention confusing for many users). Is it something where I have to edit my actual server configuration or there a script that handles this?

I apologize about the length intro; just trying the explain what the heck I'm talking about.

Reply With Quote
  #2  
Old January 15th, 2006, 11:35 PM
Kravvitz Kravvitz is offline
Contributing User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: May 2005
Location: USA
Posts: 134 Kravvitz User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 23 h 38 m 30 sec
Reputation Power: 4

Reply With Quote
  #3  
Old January 16th, 2006, 08:02 AM
MadCowDzz's Avatar
MadCowDzz MadCowDzz is offline
I'm Internet Famous
Dev Articles Frequenter (2500 - 2999 posts)
 
Join Date: Jan 2003
Location: Toronto, Canada
Posts: 2,890 MadCowDzz User rank is Lance Corporal (50 - 100 Reputation Level)MadCowDzz User rank is Lance Corporal (50 - 100 Reputation Level)MadCowDzz User rank is Lance Corporal (50 - 100 Reputation Level) 
Time spent in forums: 1 Week 16 h 14 m 9 sec
Reputation Power: 8
It's a great question, and Kravvitz has hit the answer, mod_rewrite.
It's worth noting that these friendly URLs are indexable by search engines. Many search engines won't keep a page with a query string, but if they think it's the directory structure they'll index it. Here's some examples.


http://www.example.com/petstore/canine/bulldogs

If you search for "Bulldogs", this address (I believe) is ranked higher because the search term is in the actual URL.

http://www.example.com/petstore.htm?category=canine&type=bulldogs
The actual URL to this page is everything before the question mark. Many search engines will simply ignore the rest.


Just some more benefits of these friendly URLs.
There's an article on Devarticles about Make Dynamic URLs Search Engine Friendly

I ask that any Search Engine Optimization Expert please correct me.
__________________
Daryl's Homepage | My Blogroll | My Profile | Firefox supporter!
DevArticles Forum Moderator

"The net is a waste of time, and that's exactly what's right about it." -- William Gibson

Reply With Quote
Reply

Viewing: Dev Articles Community ForumsWeb DesignWeb Development > Dynamic URL-based scripting


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
Stay green...Green IT