Apache mod_write URI Length Limitation
I ran into an odd problem recently. I’m using mod_rewrite to do some virtual hosting in conjunction with the excellent Code Igniter PHP framework.
Out of sheer laziness and a desire to avoid having to do a SOAP transaction (since we’ve already got a couple of them going in this particular bit of code) MathGeek and I decided to put a bunch of data in the URI, hashfuscated, naturally.
Unfortunately it turns out that mod_rewrite chokes on URL strings longer than 255 characters by throwing a 403 error. Now, I’m not sure if its the TOTAL length, or just the individual length of a section of a URL. I tried a few things with regexps but I’ve not really come up with anything conclusive. I’ll have to wait until I’ve a) slapped a bandaid on the problem and b) come up with a real solution before I can fire up my dev box and mess with the module to figure out the true limitation.