OK, this is more of a reminder to myself, rather than an actual tutorial, but I’ll begin with an intro.
A couple of years ago, while working on a small, but much-needed project for a large company in Latvia, I had just developed the first version of my site, uploaded it onto the server, and contacted the server admins. Everything seemed to have worked great, until I tried to access the Administration page located at http://example.com/admin. 404 greeted me.
Well at first I was frustrated with the admins, their seeming incompetence to fix the issue, and so I ended up renaming the link to the admin section.
Well recently, once I started offering hosting solutions for those pages that I created, the problem has kept coming up every time an /admin page has been used. So here’s what the solution was for me:
My servers use Ubuntu and Apache 2.2, thus in the .htaccess I had these lines:
But what they were missing was the added /public section, since the setup I was using was Zend Framework, and the first level .htaccess had problems parsing it
That seemed to fix it. Now, this is in no way answering my question, why does Apache2 by default not parse urls with /admin in them, but that is a problem for another day, another time.