Wordpress pretty urls AND Lighttpd

Discussion in 'Site & Server Administration' started by risoknop, May 8, 2008.

  1. #1
    Currently my permalinks look like this:

    Is there any way to rewrite them to be more seo friendly? Like this:

    I've already tried dozens of codes I've googled but none of them has worked so far. I think that this part should be somehow edited but I don't know how:

    My complete lighttpd.conf file is in the attachment.
     

    Attached Files:

    risoknop, May 8, 2008 IP
  2. djacobs

    djacobs Well-Known Member

    Messages:
    238
    Likes Received:
    6
    Best Answers:
    0
    Trophy Points:
    140
    #2
    Have you tried posting in the LightTPD forums or mailing list?
     
    djacobs, May 8, 2008 IP
  3. risoknop

    risoknop Peon

    Messages:
    914
    Likes Received:
    24
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Yeah. I've just posted there too. I hope someone will know how to do that.
     
    risoknop, May 8, 2008 IP
  4. risoknop

    risoknop Peon

    Messages:
    914
    Likes Received:
    24
    Best Answers:
    0
    Trophy Points:
    0
    #4
    So nobody knows how to do it?
     
    risoknop, May 9, 2008 IP
  5. st1905

    st1905 Well-Known Member

    Messages:
    573
    Likes Received:
    23
    Best Answers:
    0
    Trophy Points:
    135
    #5
    $HTTP["host"] =~ "{yourdomain}" {
    var.app = "{yourdomain}"
    accesslog.filename = base + "/logs/" + app + ".access.log"
    server.errorlog = base + "/logs/" + app + ".error.log"
    load php app
    url.rewrite = (
    "^/(wp-.+).*/?" => "$0",
    "^/(sitemap.xml)" => "$0",
    "^/(xmlrpc.php)" => "$0",
    "^/(.+)/?$" => "/index.php/$1"
    )
    } 
    Code (markup):
    This is the rewrite rule that works with wordpress for lighttpd.
     
    st1905, May 9, 2008 IP
    PowerExtreme likes this.
  6. risoknop

    risoknop Peon

    Messages:
    914
    Likes Received:
    24
    Best Answers:
    0
    Trophy Points:
    0
    #6
    Thanks. Few quick questions:

    Should I put my domain name (i.e. mydomain.com) instead of "yourdomain"?

    Do I need to do something more than just copy this to lighttpd.conf file?

    Thanks.
     
    risoknop, May 9, 2008 IP
  7. st1905

    st1905 Well-Known Member

    Messages:
    573
    Likes Received:
    23
    Best Answers:
    0
    Trophy Points:
    135
    #7
    No nothing more, and yes change it to yourdomain.
     
    st1905, May 9, 2008 IP