Syndicate

Feed

Drupal internal path versus url alias

The attached pdf document explains the difference between :

  • a url
  • a translated url
  • a url alias, and
  • Drupal’s internal path

In a nutshell, given that one types the following url in a browser’s address bar :

http://11heavens.com/Drupal-coder-lost-in-space/where-are-we

Based on rewrite rules found in the .htaccess file in the same folder as index.php, the server translates this url to :

http://11heavens.com/index.php?q=Drupal-coder-lost-in-space/where-are-we

The page index.php receives a name and value pair, where “q” is the name and “Drupal-coder-lost-in-space/where-are-we” is the value associated with that name.

Drupal looks up a url alias table — {url_alias} — and recognizes that this path is an alternate path for this Drupal’s internal path : node/44.

Looking at the table url_alias

On the server, the page index.php builds its content based on that “internal path” and sends the xhtml back to the browser. In the browser is shown in full view the node with unique identifier 44.

Browse this article

AttachmentSizeHitsLast download
DrupalInternalPathVersusURLAlias.pdf120.71 KB341743 weeks 2 days ago
Last edited by Caroline Schnapp about 1 year ago.

One file is attached to this posting. Login or register to download this file.


Comments

Post new comment

The content of this field is kept private and will not be shown publicly.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Allowed HTML tags: <css> <html> <javascript> <mysql> <php> <span> <a> <b> <i> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <sup> <sub> <dd> <del> <blockquote> <img> <q> <p> <div>
  • Lines and paragraphs break automatically.
  • You can enable syntax highlighting of source code with the following tags: <css>, <html>, <javascript>, <mysql>, <php>, <rails>, <ruby>.

More information about formatting options

CAPTCHA
I have to wonder if you're a human spammer or a machine, or less likely someone who cares to leave his or her thoughts behind.