WordPress.org

Ready to get started?Download WordPress

Forums

WordPress URL structure (8 posts)

  1. Chip Bennett
    Theme Review Admin
    Posted 8 years ago #

    I'm guessing this is a PHP question?

    The wordpress URL structure:

    http://mydomain/wordpress/index.php/2006/03/mypermalink/

    Can someone explain (or point me to a good resource that explains) how the stuff after "index.php" is added to the URL?

    I'm converting the rest (i.e. non-blog parts) of my website to PHP, and can see potential uses for a similar URL structure.

    Hope the question even makes sense; I've not had enough coffee yet today!

  2. Chip Bennett
    Theme Review Admin
    Posted 8 years ago #

    Anyone?

  3. westondeboer
    Member
    Posted 8 years ago #

    if you go to http://www.chipbennett.net/wordpress/wp-admin/options-permalink.php
    you change change the way that it all looks

  4. Chip Bennett
    Theme Review Admin
    Posted 8 years ago #

    I don't want to *change* my blog permalink structure.

    I want to know how WordPress *builds* the permalink structure. I don't know PHP well enough to know how to put "stuff" after the ...index.php - as follows:

    ...index.php/2006/03/fake-permalink/

    How is that done? Is it a PHP thing, or a WP thing, or what?

  5. What exactly are you trying to do? Are you just curious how it works behind the scenes? Or what?

  6. IIIIIIIV
    Member
    Posted 8 years ago #

    @chipbennett. It's neither a WP nor a PHP thing, it's a mod_rewrite thing. Yor URL's are being written into human friendly URL's by a series of rules.

    http://httpd.apache.org/docs/1.3/misc/rewriteguide.html
    The science behind it all. Good luck.

  7. Chip Bennett
    Theme Review Admin
    Posted 8 years ago #

    IIIIIIIV,

    Oh, it's an Apache thing! :)

    Thanks! That was exactly what I was looking for...

    Now, to go edumacate myself :)

  8. Well, in v1.x, it's done all via mod_rewrite (including parsing), but in v2.x, mod_rewirte just hands it off to WordPress which decodes the URL.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags