View Single Post

  #5 (permalink)  
Old 05-31-2007, 08:51 AM
iluvhk iluvhk is offline
Junior Member
User
 
Join Date: May 2007
My distro: REDHAT EL 5
Posts: 4
Rep Power: 0
iluvhk is on a distinguished road
Default

Hi,

The redirect doesn't work in my wordpress.

when I type domain.com/date/day/post, it redirects me to www.domain.com/index.php/date/day/post, thus it gives me a 404 error. I think this is due to my rewrite rule that I Have.. but I have no idea how to fix it. I am currently running my wordpress on lighttpd.

Here is my rewrite rule:

url.rewrite = (
"^/(wp-.+).*/?" => "$0",
"^/(sitemap.xml)" => "$0",
"^/(xmlrpc.php)" => "$0",
"^/(news-sitemap.php)" => "$0",
"^/(google_adsense_script.htm)" => "$0",
"^(/(images|img|jcap|photo/.*)$" => "$1",
"^/(.+)/?$" => "/index.php/$1"
)

Does anyone know how to fix it? I need to get this done asap, because google is reading doubt post (www.domain.com and domain.com)

Thanks in advance,
Calvin
Reply With Quote