[Help] Mod_Rewrite in Lighthttpd for Wordpress

Discussion in 'Site & Server Administration' started by skycrew, Apr 12, 2008.

  1. #1
    Hi,

    I have 2 blog running in one domain.

    1) www.domain.net/blog/
    2) subdomain.domain.net

    before this, Im using Apache

    this are the mod rewrite for 1st blog in apache:

    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /blog/index.php [L]
    </IfModule>

    and this are the mod rewrite for the 2nd blog:

    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /index.php [L]
    </IfModule>

    after I change my shared hosting to VPS, I only can use lighthttpd. So I
    google about this and find this code:

    url.rewrite-once = (
    “^/(wp-. ).*/?” => “$0″,
    “^/(sitemap.xml)” => “$0″,
    “^/(xmlrpc.php)” => “$0″,
    “^/keyword/([A-Za-z_0-9-] )/?$” => “/index.php?keyword=$1″,
    “^/.*?(?.*)?$” => “/index.php$1″
    )

    the code works great for the 2nd blog, but not for my 1st blog. I can
    access www.domain.net but if I click hyperlink to www.domain.net/blog I
    will get 404 error.

    anyone can help me??
     
    skycrew, Apr 12, 2008 IP
  2. skycrew

    skycrew Peon

    Messages:
    32
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #2
    already find the solution, moderator can close this thread
     
    skycrew, Apr 13, 2008 IP