Viewing 9 replies - 1 through 9 (of 9 total)
  • Pages can be organized in hierarchy:

    Example, you create one page called vegetables.

    Then you create a page called carrots.

    Another one called potato.

    Then you can, if you want, put both as child pages of vegetables.

    In most templates, it will create a menu like:
    vegetables > carrots
    vegetables > potato

    You can even go down to 3 levels

    like vegetables > potato > white potato

    it’s very flexible, one page can be a child of several parents too, you can even create custom taxonomies for that end

    links works the very same, if you use pages, NOT posts it would look like:

    yoursite.com/vegetables/potato/white-potato

    as SERP

    Thread Starter Off Pavement

    (@off-pavement)

    yoursite.com/vegetables/potato/white-potato

    In your example, by using the “yoursite.com” as part of the address, does WP route the request to an external router or does it strip the “yoursite.com” and handle the request internally?

    MMM, that is done in many parts, following worldwide internet backbones:

    Theory:

      worldwide DNS
      region DNS
      country DNS
      your host DNS
      your host server

    WordPress:

      your host server, handling request
      .htaccess if on Linux based server, rewriting process, checking auths
      reading mysql db to fetch text
      reading cache if used by Apache or Nginx
      (if cache plugins, or minify solutions, trying to read)
      DOM checking JS calls, Google fonts such things
      Calling php and dynamic stuff
      Finally rendering page (more or less async)

    If you use a private host (not wordpress.com), this will follow a similar path more or less.

    I don’t know if WordPress strip internally urls, but it’s called slug for a long time. Way before pages existed. I do know the additional processing of “perfect seo” urls put more cpu at hand. Like with all databases, the less paramater, the longer load time.

    After if you are a coder, check this, this is how WordPress works internally when php is called

    View post on imgur.com

    In the example, pages use a quite hard rewriting url process (they are basically posts with an id). So carrots page was in the process something like p=65146? something.

    In your example, by using the “yoursite.com” as part of the address, does WP route the request to an external router or does it strip the “yoursite.com” and handle the request internally?

    WordPress doesn’t do the routing. Your browser does.

    As a standard, WordPress outputs all links including internal links as complete URI’s. This was a very early on design decision, mainly to make it easier for browsers. The difference is that some older browsers could get messed up if you have relative links, where as complete links always resolved to the correct location.

    It’s also a whole lot eaiser for us humans to read as well. There’s a big difference in knowing where http://www.mysite.com/folder/image.jpg/ will be located vs. ../../folder/image.jpg. When you’re editing pages, and especially changing any item in a hierachy, managing relative links becomes a nightmare very quickly.

    Thread Starter Off Pavement

    (@off-pavement)

    Thanks for the replys.

Viewing 9 replies - 1 through 9 (of 9 total)

The topic ‘How Does It Work?’ is closed to new replies.