Recently I created a gentoo ebuild for the 0.4 version of the KDE 4.3 service menu manager (http://www.kde-apps.org/content/show.php/Service+Menu+Manager?content=94996):
# Copyright 1999-2008 Gentoo Foundation
# Author Phillip Merensky
# Distributed under the terms of the GNU General Public License v2
DESCRIPTION="This app is a System Settings module to manage service menus."
emake || die "Make failed!"
Save it as service-menu-manager-0.4.ebuild in your favorite category (I prefer kde-misc) in your custom overlay, execute
ebuild service-menu-manager-0.4.ebuild digest
and emerge it.
While customizing this homepage I came across the following problem: I wanted to rewrite every request which accesses the root of this page to access the subfolder “drupal”. This way t is possible to use “www.phillme.de” to see the blog and additionally allow subfolders on the same level as the “drupal” directory.
My first guess was to use the following in a .htaccess-file in the document root:
Sadly enough it did not work although the url rewriting guide of apache at http://httpd.apache.org/docs/2.2/rewrite/rewrite_guide.html exactly mentions the same solution for a moved document root.
The solution described there is the following, which is very similar to my initial yet not working attempt:
RewriteRule ^/$ /about/ [R]
Of course I also tried the “[R]” for redirect with the same problem. The redirect was not triggered. Fortunately I found another site with “very common mistakes” about rewrite rules (http://rewriterule.alantait.com/4/). It mentions that the RewriteRule does NOT have the beginning “/” which transforms my initial solution to
without the root slash and… finally it works.
I am wondering if this is an error in the apache documentation or if I just got something wrong. Maybe someone can brighten the for me. All others may consider the solution above ;-).