WordPress.org

Ready to get started?Download WordPress

Forums

New mod_rewrite rule (11 posts)

  1. BoInG
    Member
    Posted 9 years ago #

    1.It's possible to create a link like:

    /%category%/%subcategory%/%subsubcategory%/%post% ????

    and this depending on how many subcategorys are... ?

    2. how can i changethis rule :

    /%year%/%monthnum%/%day%/%postname%/

    to

    /%year%/%monthnum%/%day%/%postname%.html

    tnq

  2. ceo
    Member
    Posted 9 years ago #

    Why would you want to? What's wrong with the permalinks as they are?

  3. Kafkaesqui

    Posted 9 years ago #

    For 1, this might help:

    http://boren.nu/archives/2005/03/08/ungreedy-rewrite-plugin/

    For 2, you already specify how to do it.

  4. BoInG
    Member
    Posted 9 years ago #

    let me explain:

    how's nice?

    the first rule:

    /category/date1/date2/date3/title/

    or

    /computers/monitors/lcd/19/benQ.html

    why i want something like this?

    because helps me SEO my page and looks nicer

    tnq for the link :D

  5. moshu
    Member
    Posted 9 years ago #

    Why is
    /computers/monitors/lcd/19/benQ.html nicer than
    /computers/monitors/lcd/19/benQ.php ?

  6. RaynerApe
    Member
    Posted 9 years ago #

    Because some search engines prefer to follow and index static pages rather than dynamic ones. I have done the same thing and now Yahoo indexes every single page on my blog.

  7. BoInG
    Member
    Posted 9 years ago #

    /computers/monitors/lcd/19/benQ.html nicer than
    /computers/monitors/lcd/19/benQ.php ?

    are almost the same

    but i whant to know if is possible to create somethink like this:

    /%category%/%subcategory%/%subsubcategory%/%post% ????

    -read the first post

  8. moshu
    Member
    Posted 9 years ago #

    The answer is here. If I read it correctly, the answer is - no.

  9. BoInG
    Member
    Posted 9 years ago #

    ok - that means its impossible for now, maybe in the future :D

  10. Kafkaesqui

    Posted 9 years ago #

    Yahoo crawls all the pages on my site as well, and I don't use .html at the end of every one. But as I mentioned above, the structure is already specified above:

    /%year%/%monthnum%/%day%/%postname%.html

    Just ading .html to the end will work.

  11. ceo
    Member
    Posted 9 years ago #

    I wasn't trying to be rude, sorry if it came off that way. But I was just curious what the purpose of such an inconsequential change was for. Kafkaesqui basically covered my point, the added extension doesn't change anything in regards to crawling...I mean all it does is make your URL longer, really.

    To each his own.

Topic Closed

This topic has been closed to new replies.

About this Topic