joi, 31 martie 2011

RewriteRule still in effect

I post this because today I lost about one hour trying to find what the heck is happening with my Apache server. If you're playing with RewriteEngine and for an unknown reason a RewriteRule is still working even after removing it, try to add Options -MultiViews on top of your .htaccess file. It should work. I hope that you found this post before thinking that your Apache server is haunted, like I done before finding this solution.

Postez asta pentru că astăzi am pierdut cam o oră încercând să aflu ce pierzania se înâmplă cu serverul meu Apache. Dacă îţi faci de cap cu RewriteEngine şi, dintr-un motiv aparent necunoscut, o regulă RewriteRule încă se aplică chiar dacă ai eliminat-o, încearcă să adaugi un Options -MultiViews în capul fişierului .htaccess. Ar trebui să meargă. Sper că ai găsit postul ăsta înainte să crezi că serverul tău e bântuit, aşa cum începusem să cred eu...