Pretty Permalinks in Lighthttpd
-
Hi,
I have 2 blog running in one domain.
1) https://www.domain.net/blog/
2) subdomain.domain.netbefore 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 https://www.domain.net but if I click hyperlink to https://www.domain.net/blog I will get 404 error.
anyone can help me??
- The topic ‘Pretty Permalinks in Lighthttpd’ is closed to new replies.