Clean New Install Wordpress

Wednesday, January 28th, 2009

Fresh install of wordpress has little junk in it (a test post, a test comment and 7 links)


TRUNCATE TABLE `wp_links`;
TRUNCATE TABLE `wp_comments`;
TRUNCATE TABLE `wp_posts`;
TRUNCATE TABLE `wp_term_relationships`;
UPDATE `wp_term_taxonomy` SET `count` = '0' WHERE `term_taxonomy_id` = 1;
UPDATE `wp_term_taxonomy` SET `count` = '0' WHERE `term_taxonomy_id` = 2;

Wordpress Permalinks with Lighttpd

Friday, April 11th, 2008

I found few url-rewrite based solution for enabling Permalinks in Wordpress+Lighttpd but none of them worked flawlessly. Guys, all we need here is something similar to following Apache rewrite code (without any side effect, like 404 header etc).

RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]

(more…)