Random Post: Allofmp3 Linux Client
RSS .92| RSS 2.0| ATOM 0.3
  • Home
  • DNS Control
  •  


    Wordpress - Lighttpd - Permalinks - Without rewrite

    May 16th, 2007

    Ok, I setup lighttpd on my machine and found out lighttpd can’t handle some mod_rewrite directives (used with permalinks). Specifically, sending a request to index.php if a file couldn’t be found. Here is an easy work around. First, you need to make sure your current theme has a 404 page. Goto Presentation->Theme Editor and see if you have a template called “404 template”. If you don’t, just copy wp-content/themes/default/404.php to your theme directory:

    cp wp-content/themes/default/404.php wp-content/themes/YOUR_THEME

    Then edit the 404 template file and add:

    < ?php header("HTTP/1.1 404 Not Found"); ?>

    at the top of the script. This is so pages that are not found actually send 404 response headers. This is important for search engine bots like google.

    After that, edit lighttpd. You just need this line in your virtual host:

    server.error-handler-404 = "/index.php"

    Thats it. Let me know if you have any issues with this.


    2 Years of ViaTalk VoIP Phone Service for $199

    May 11th, 2007

    ViaTalk is offering unlimited Voice over IP phone service for 2 years for $199.

    With this service, you have unlimited local and long distance phone service for 2 years.

    Includes:
    Voicemail
    Caller ID
    Call Waiting
    Call Forwarding
    *69
    Free in-network calls
    And many more.

    DSLReports has a very good 91% rating from customers.

    Signup