WordPress.org

Ready to get started?Download WordPress

Forums

next / previous links (5 posts)

  1. Anonymous
    Unregistered
    Posted 10 years ago #

    Does anyone know how to use mod_rewrite to make the paged links (next / previous) look good? They are still trashed right now, but all of the others look good.

  2. Anonymous
    Unregistered
    Posted 10 years ago #

    since no one is responding, i guess thats a NO.

  3. Ozh
    Member
    Posted 10 years ago #

    Hmm... what the hell with this forum ? I'm pretty sure I pressed the "Post Message" button in this thread before going to bed :)
    So, my answer was : I gave it a quick try and something like this is a good start :

    RewriteEngine On
    RewriteBase /wp_root
    RewriteRule ^page/([0-9]+)$ /wp_root/index.php?paged=$1 [QSA]

    It will work fine for "wp_root/page/2" instead of "wp_root/index.php?paged=2"
    But there can be more complicated queries, like "index.php?category_name=linux&paged=2" so this RewriteRule is not complete.

    Basically, if I find a list of all possible query cases, I could write a rewriterule that deals with every case.

  4. Beel
    Member
    Posted 10 years ago #

    You did... double thread.

  5. Ozh
    Member
    Posted 10 years ago #

    ah. I knew I was tired :)

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.