Reply
Hiding coding language from user?
Old 07-12-2008, 03:25 PM Hiding coding language from user?
Super Talker

Posts: 129
Hi,
I was just browsing YouTube when I thought that how do you know what language it is in.

http://youtube.com/watch?v=uFwO1kWeSQs

That's an example of a youtube url. How can anyone tell what language it's in.

The other thing that makes me think is how can it not have a trailing slash. I have seen quite a few pages that are like www.site.com/users/username

I know it's not an important question but it just makes me think. Does any know how it works as I am pretty sure that the url without the slash is not a directory as it would have a slash.

Many sites have this method or pages, veoh, youtube, mininova are some.

Can anyone tell me what it is and what does youtube do to hide its language?

Thanks.
__________________
Watch Movies Online
yourmediaking is offline
Reply With Quote
View Public Profile
 
When You Register, These Ads Go Away!
Old 07-12-2008, 03:58 PM Re: Hiding coding language from user?
wayfarer07's Avatar
$frontend->developer

Posts: 1,526
Name: Abel Mohler
Location: Asheville, North Carolina USA
I'm not sure YouTube cares much about hiding the language, but their site is definitely more user friendly without the trailing extension.

YouTube is hosted on Apache, which means they are rewriting the URLs inside of a .htaccess file (unless there is another way to do it, I'm not sure). Here is a guide to URL rewriting on Apache: http://httpd.apache.org/docs/2.0/misc/rewriteguide.html
__________________
<!--<a href="http://wayfarerweb.com">if a signature drops in the forest, and no one is there to see it, does it make a link?</a>-->
wayfarer07 is online now
Reply With Quote
View Public Profile
 
Old 07-12-2008, 06:02 PM Re: Hiding coding language from user?
chrishirst's Avatar
Super Moderator

Posts: 16,467
Location: Blackpool. UK
A URL to a directory does not need a trailing slash as the webserver will automatically redirect to the trailing slash version

so site.tld/folder or site.tld/folder/ are equally correct as URIs
__________________
Chris. ->> Links are advertising NOT optimising!! <<-
Indifference will be the downfall of mankind, but who cares?
Code Samples | People Counting System | Bits & Bobs
chrishirst is offline
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
Reply     « Reply to Hiding coding language from user?
 

Thread Tools

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
Trackbacks are Off
Pingbacks are Off
Refbacks are Off




   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML

 


Page generated in 0.11957 seconds with 12 queries