How to configure your web application to correctly deal with character set/encoding issues

Background I’ll just link to the best places i’ve found to read up on the background. Read these first if you want to understand whats going on: Excellent intro to character encodings Joel On Software, on Unicode The Details In order to get your website working harmoniously with one character set, you first have to… Continue reading How to configure your web application to correctly deal with character set/encoding issues

More ModRewrite – Using a dbm file instead of a txt file

The most confusing thing is when you use the perl script on the official apache site here it’s written for the NDBM format (which isn’t available on my box). Here’s the perl script: #!/path/to/bin/perl ## ## txt2dbm — convert txt map to dbm format ## use NDBM_File; use Fcntl; ($txtmap, $dbmmap) = @ARGV; open(TXT, “<$txtmap")… Continue reading More ModRewrite – Using a dbm file instead of a txt file

Mod_rewrite: Attempting to bend RewriteMap, RewriteCond, and RewriteRule to my will…

RewriteEngine On RewriteMap redirects txt:/home/…/…/rewriterules.map RewriteRule ^(.*)$ ${redirects:$1|$1} [R,L,NC] How does it work? (See here for details.) The first line turns on mod_rewrite. The next line sets the location of the map file (the two column list of source/destinations). The third line sets a RewriteRule that says “take everything in the request uri” (.*), and… Continue reading Mod_rewrite: Attempting to bend RewriteMap, RewriteCond, and RewriteRule to my will…