View Single Post

  #8 (permalink)  
Old 05-31-2007, 10:07 PM
rockdalinux's Avatar
rockdalinux rockdalinux is offline
Contributors
User
 
Join Date: May 2005
Location: Bangalore
My distro: RHEL, HP-UX, Solaris, FreeBSD, Ubuntu
Posts: 581
Rep Power: 7
rockdalinux is a jewel in the rough rockdalinux is a jewel in the rough rockdalinux is a jewel in the rough rockdalinux is a jewel in the rough
Default

U need only 2 lines as pointed out by vivek, remove your rest of the junk (your mod_rewrite seo code) , here is code from one my own domain:
Code:
server.document-root = "/home/lighttpd/domain.com/http"
accesslog.filename         = "/var/log/lighttpd/domain.com/access.log"

  # WP seo urls
  server.error-handler-404 = "/index.php?error=404"
 
  # feedburner redirect
  $HTTP["useragent"] !~ "FeedBurner" {
   url.redirect = (
         "^/feed*" => "http://feeds.feedburner.com/myUrl",
         "^/\?feed=*" => "http://feeds.feedburner.com/myUrl"
   )
  }
 # redirect all  domain.com/2005/01/url/ to www.domain.com/2005/01/url/ 
 # send 301
 $HTTP["host"] =~ "^domain\.com$" { url.redirect = ( "^/(.*)" => "http://www.domain.com/$1" ) }
So remove your junk code add as above also make change to wp by visiting yourblog.com/wp-admin/ > Options > permalink > Type new slug in "Custom structure" (e.g. /%category%/%postname%/ ) > Save changes and restart lighttpd. It should work now.
__________________
Rocky Jr.
You may have my body & soul, but you will never touch my pride!

If you have knowledge, let others light their candles at it.

Certified to work on HP-UX / Sun Solaris / RedHat
Reply With Quote