How is the illusion of static pages created?

Discussion in 'WordPress' started by Stu--, Mar 10, 2010.

  1. #1
    I am a little confused. I understand that content in WP is dynamic and created from the database. But how does it create an illusion of being static? Obviously WP pages show on search engines, yet technically they are not stored anywhere. So how does this all work?

    I want to know so I can achieve the same technique for a WP addon I'm making that generates pages from database content.

    Or:
    Is static content cached on Google
    or
    Is it a trick of the "permalinks" feature?

    I need as much explanation as possible please!
     
    Stu--, Mar 10, 2010 IP
  2. infogle

    infogle Prominent Member

    Messages:
    2,732
    Likes Received:
    128
    Best Answers:
    1
    Trophy Points:
    300
    #2
    Yes you get it right its permalinks who do the trick and convert dynamic urls to static ones.

    If you need any permalinks help let me know... this feature is available in the admin area.

    Hope it helps...
     
    infogle, Mar 10, 2010 IP
  3. Stu--

    Stu-- Active Member

    Messages:
    355
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    53
    #3
    Ok they create "URLS", but do they create real html files?

    I'm thinking now that there are no static "pages", just redirection tricks.
     
    Stu--, Mar 10, 2010 IP
  4. psdtowordpress

    psdtowordpress Peon

    Messages:
    38
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #4
    Go to PERMALINKS, then to "Custom Structure" and type /%postname%/
    If that is helpful they will generate a proper SEO friendly page for you.
    If the advice was good please visit my page and thanks me! :)
     
    psdtowordpress, Mar 12, 2010 IP
  5. Stu--

    Stu-- Active Member

    Messages:
    355
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    53
    #5
    What exactly ARE permalinks? How does a search engine know about them? Are they files or just links on a sitemap? Is it the sitemap that gives the illusion that there are real pages?
     
    Stu--, Mar 12, 2010 IP
  6. Pros

    Pros Well-Known Member

    Messages:
    244
    Likes Received:
    13
    Best Answers:
    0
    Trophy Points:
    150
    #6
    In essence they use .htaccess to make the actual pages (.php in this case) into something which will help you get higher rankings in search engines.

    So it creates a directory (by default) which appears and represents an actual directory but is not physically there on your server.

    It is more like a "cover" then a redirect, because it sends 200 headers.

    Search engines know about any given thing by crawling and analyzing data..

    It is the created .htaccess that gives the "illusion that they are real pages" but that is a distinction without a difference.

    They are, again, in essence, a renaming of a URL. You can research mod_rewrite for more on this.
     
    Pros, Mar 12, 2010 IP
  7. ilook

    ilook Well-Known Member

    Messages:
    1,602
    Likes Received:
    15
    Best Answers:
    1
    Trophy Points:
    165
    #7
    mod_rewrite
     
    ilook, May 31, 2010 IP
  8. tribulant

    tribulant Active Member

    Messages:
    352
    Likes Received:
    37
    Best Answers:
    0
    Trophy Points:
    85
    #8
    You'll need a .htaccess file and then go to Settings > Permalinks
    YOu can use a custom structure like this %category%/%postname%.html
     
    tribulant, May 31, 2010 IP