Take a look at the address bar on your browser, And you’ll see a wonderful URL. What is the reason for WordPress.org to have such a long URL.

From a developer’s point of view, it is enough to pass the auto increment id of the post to the page as index.php?postid=23 or something like it.

The reason of having such a long URL is Memory and the brain. Not the server’s memory, but the human memory and the brain. It is easy to remember URLs if we can associate them with the content of the page. Further, its even easier for the brain to associate string tokens for content rather than just plain numbers.

Apart from that, its SEO (Search Engine Optimization)

The search engines (as of writing) give a good value to the page if a particular string token is present in the URL. You name em all. Further, “the more the no. of such URLs, the more the content on your website” this is a common understanding of the Search Engine.


2 Responses to “URLs”

  1. Steve Says:

    Hi – I’m trying to process my log file of our web site, and most things I understand, but what’s the difference between “GET / HTTP” and “GET /index.htm HTTP”. Also, sometimes the “GET / HTTP” has a referrer (so I can analyse the requests) and other times not. It’ll just mean I can propertly analyse the log entries – Many Thanks in anticipation

  2. ruturajv Says:

    The request “GET / HTTP” tells the Server to return the root directory (DocumentRoot in Apache) mapped for that host.

    If the Directory has any default index page, then that page may be served, if directory listing is enabled, then the directory listing is showed.

    “GET /index.htm HTTP” means the request is for the page “index.htm” in the root directory.

    So if you have index.htm mapped as the Directory’s default page, a “GET / HTTP” will give you contents of “/index.htm” page.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s

%d bloggers like this: