Okay I have 2 wordpress blogs and I am using lighthttpd and I used to use Apache and the mod rewrite worked fine but I can't use that now so how do I make mod rewrite work with lighthttpd?
Lighty can't use .htaccess files as that impacts performance which goes against their aims. here's a quick guide on how to do it in lighttpd http://www.gagarigs.com/site/wordpress-lighttpd-mod_rewrite-make-pretty-links/
I paste the 1. $HTTP["host"] =~ "gagrigs\.com" { 2. url.rewrite-final = ( 3. # Exclude some directories from rewriting 4. "^/site/(wp-admin|wp-includes|wp-content|gallery2)/?(.*)" => "$0", 5. 6. # Exclude .php files at root from rewriting 7. "^/site/(.*\.php)" => "$0", 8. # Handle permalinks and feeds 9. "^/site/(.*)$" => "/site/index.php/$1" 10. ) 11. } Code (markup): into my lighttpd.conf file but when I restart lighthttpd it doesn't start back up.
yea it looked like $HTTP["host"] =~ "narutoforfree\.com" { url.rewrite-final = ( # Exclude some directories from rewriting "^/site/(wp-admin|wp-includes|wp-content|gallery2)/?(.*)" => "$0", # Exclude .php files at root from rewriting "^/site/(.*\.php)" => "$0", # Handle permalinks and feeds "^/site/(.*)$" => "/site/index.php/$1" ) } Code (markup): also i just put the code at the bottom of my .conf file...do i need to put it in a certain place?
OK, just to check - did you enable mod_rewrite for lighttpd? Also, try removing "site/" from the lines above - thus the config for your site should be: #I added in the (www.)? bit below just in case you ever decided to have the www version also point to the domain, so that the regex will check for it $HTTP["host"] =~ "(www.)?narutoforfree\.com" { url.rewrite-final = ( # Exclude some directories from rewriting "^/(wp-admin|wp-includes|wp-content|)/(.*)" => "$0", # Exclude .php files at root from rewriting "^/(.*.php)" => "$0", # Handle permalinks and feeds "^/(.*)$" => "/index.php/$1" ) } Code (markup): This is assuming that wordpress is installed at the top of the site (ie, not in a subdir). If the software that streams the videos is in a subdir, then add that subdir to the exclusion line.