Jonathan Polansky

A pretty good webpage.

Post archive for ‘Tech’

Using mod_rewrite to redirect URIs with GET query parameter strings

I recently came across a situation where I had to redirect URI paths and GET query parameter string combinations to a single URI.  The URI path could be the same between requests and the GET query strings could be the same between requests but the combination of the two was guaranteed to be unique. My [...]

WordPress comments feed returns "404 Page not found"

I’ve had an issue with WordPress 2.7.1 returning a 404 Page not found error for the comments feed (/comments/feed/).  Much web searching has yielded no solutions.  The only thing I could think of was that due to the (low) traffic of this site it doesn’t have any comments.  Sure enough, as soon as I added [...]

Tying multiple Apache RewriteRules to a set of RewriteCond(s)

Recently I had a set of mod_rewrite RewriteRules that I wanted to only be evaluated if a set of RewriteConds were matched. This turned out to be a much more difficult task than I had anticipated. Combining RewriteConds is no problem; this is supported with the default ‘AND’ behavior or the ‘OR’ CondPattern flag (http://httpd.apache.org/docs/2.0/mod/mod_rewrite.html#rewritecond). [...]

WordPress spell check SSL error

I ran into a WordPress error with the built-in spell check. Error response: <br /> <b>Warning</b>: fgets() [<a href='function.fgets'>function.fgets</a>]: SSL: fatal protocol error in <b>/path/to/htdocs/wp-includes/js/tinymce/plugins/spellchecker/classes/GoogleSpell.php</b> on line <b>94</b><br /> {“id”:null,”result”: The error is described a bit here but they don’t really solve it.  It’s pretty unlikely that a host would be blocking outbound SSL connections [...]