August 30, 2014
Today I had to configure a WordPress website to use Lighttpd. I looked for the proper rewrites to use and only received garbled information about the rewrites. So instead of forgetting it again for the umpteenth time, I will post my getting WordPress to work with Lighttpd tips / tricks here.
First up there are three key rewrites to get Lighttpd to work with WordPress. They are as follows: (note mod_rewrite will need to be enabled and this is in the lighttpd.conf).
url.rewrite = (
"^/(wp-admin|wp-includes|wp-content)/(.*)" => "$0",
"^/(.*).(.+)$" => "$0",
"^/(.+)/?$" => "/index.php/$1"
The second key item is making sure that the error handler is set properly.… Read More
Category: Lighttpd, Tricks.htaccess, all rewrites, apache2, assist, average, convert, cpu, hacks, help, howto, lighttpd, load, load average, lower, mod_rewrite, restart, rewrites, run, setup, speed, start, tips, to, tricks, wordpress, work, works
November 04, 2012
A day does not go by it seems that someone is asking how to create a simple contact form in PHP. The problem I tend to find is that most of the tutorials online show bad programming practice, such as using the @ error suppressor or not validating / checking the data passed into the form. I decided to write up a few of my tricks on how to do a proper PHP Secure Contact form and attempt to explain why. As always, I welcome comments / suggestions in the remarks. I have decided to omit the Captcha, as I feel Captcha is just broken, so if you want to prevent spam, you will need to research other methods, like Honey Pots.… Read More
Category: PHP, Trickscode, contact, how, howto, mail, PHP, program, programming, secure, simple, to, tricks, very easy