This document discusses URLs and URL design. Some key points covered include:
- URLs should be meaningful and describe the content or functionality behind them. File structure and naming conventions in URLs can help with this.
- URL rewriting techniques like Pretty URLs can make URLs cleaner and more readable for users and search engines.
- Namespaces, routing conventions, and RESTful design principles can help organize URLs and map URLs to application functionality.
- Vanity URLs, long URLs, and duplicate or dangling URLs should generally be avoided for usability and maintenance reasons.
6. „Pretty much the only good reason for a document to
disappear from the Web is that the company which
owned the domain name went out of business or can
no longer afford to keep the server running. Then
why are there so many dangling links in the world?
Part of it is just lack of forethought.“
Tim Berners-Lee
http://www.w3.org/Provider/Style/URI.html
9. Under the hood
http://www.ftc.gov/index.shtml server side includes
http://www.tfgm.com/index.cfm ColdFusion
http://w3schools.com/default.asp active server pages
http://www.microsoft.com/en-us/default.aspx
asp.net
http://www.eclipse.org/legal/copyright.php PHP
http://java.com/en/download/manual.jsp
java server pages
10. Content type
Default is HTML
http://farm4.static.flickr.com/3620/3513606398_1f12ecfdc7_o.jpg
http://phpsec.org/php-security-guide.pdf JPEG
PDF
http://ftp.akl.lt/Video/Sintel/sintel-1024-surround.mp4
MPEG-4
http://tools.ietf.org/rfc/rfc1738.txt plain text
22. Routing by implementation
$app = new SilexApplication();
$app->get('/blog/{id}', function($id) {
// show blog post
});
$app->post('/blog/create', function () {
// create blog post
});
$app->post('/blog/{id}/update', function ($id) {
// update blog post
});
$app->get('/blog/{id}/delete', function ($id) {
// delete blog post
});
$app->run();
http://silex-project.org/
23. XML emacs CSS3 subversion Webkit
PHPNW11 applications conference PHP
CVS Kate WTF
CfP programming javascript
RFC William
Mosaic Pippa
web free as in beer mobile
Manchester United football Manchester City
codecs
W3C
Firefox And yes, it's also good for SEO
user group links git open source
mercurial
REST HTTP IANA
HTML5 BoF URL
protocols
JSON Chromium resource apps
PHP community CURL OGV free as in speech
RTFM vim software PHPNW
web IDE
LOL development FTW
URI HATEOAS Internet
24. people look 25% of their time at the URL*
https://duckduckgo.com/?q=manchester
*ftp://ftp.research.microsoft.com/pub/tr/TR-2007-01.pdf