Problem Using Option 2 Search Engine Friendly URLs using htaccess in Pligg, With Fix
Posted by John Lockwood on June 7th, 2008
For most of my usual real estate readers, this post will be pretty technical and you may want to skip it. It deals with a fix I found in working on Houssee.com, and it has a sort of Dilbert-like appeal to those of you who’ve ever worked on a software team.
One of the reasons I eventually left software is the inordinate amount of time we used to spend making the case that
#define BROKEN true
should be changed to
#define BROKEN false
Usually there’s some vague sociological reason for leaving the first line in, like a manager who found a consultant who told him it should be that way.
In this case the reason is:
“I Know More About Apache Than YOU Do, Neener Neener Neener”
For those of you who are still struggling to get “Option 2″ search engine friendly URLs to work in Pligg using .htaccess, you can take comfort in the fact that the developers over there know more about Apache than you do.
But meantime enjoy the fix below!
|
|||
|
The Fix
Guys,
I believe I found the fix for this. Unless anyone knows of a reason why it shouldn’t be included, I suggest the developers roll it into the code and see if it doesn’t save a lot of people grief in the next release. Here it is: In .htaccess, find the line that reads: Options +Indexes +FollowSymlinks Change it to this: Options +Indexes +FollowSymlinks -MultiViews The problem in a nutshell is that depending on how Apache is configured, ^upcoming/… (for example) never fires off the rewrite rule, but instead resolves to upcoming.php?/…. The fix above solved it for my host (kattare.com), and now option 2 is running brilliantly. Hope that helps. |
|
|||
|
Who said anything about listing it in the requirements? If your code DEPENDS on the thing being turned off, and you know that, and the fix is easy, then one would think that someone with source code access who cares about having a quality product that works for as many installed users as possible would take a minute to add the 1/3 of a line of code that it takes to turn it off. If it was off to begin with, fine, no harm done, it’ll still be off. If it was on to begin with, the “issue” will now be a “non-issue” because the “bug” will be “fixed”.
Quote:
Yeah, and there’s no way I can make a list of all the bugs there are in your code. Mostly I find it fairly robust, and I’m not trying to sound ungrateful, but I stubbed my toe hard on this one, and I’m not the first one, hence the thread. I sent you the fix. Here it is again: Add -MultiViews to the Options line in .htaccess. If you’d rather show off how much more you know about Apache configuration than your users than have a product that works in as many environments as possible, leave it broken. |

June 8th, 2008 at 1:23 pm
[...] We fixed an obscure technical problem, and got grouchy with a guy who was stubborn about it. It’s probably not interesting to you, but if you like obscure technical problems or seeing me grouchy, read about it. [...]