Skip to content
  • Lukas Fleischer's avatar
    Add routing front/back ends · eb22bcc7
    Lukas Fleischer authored
    
    
    This adds a URL mapping library that can be used to implement virtual
    paths. Also, "web/html/index.php" is moved to "web/html/home.php" and
    "web/html/index.php" becomes a routing front end that maps virtual paths
    to corresponding files.
    
    To enable the virtual path feature, all requests need to be redirected
    to the "index.php" routing script. If you use lighttpd, following
    rewrite rule can be used:
    
        url.rewrite = ( "^(.*)$" => "/index.php/$1" )
    
    A similar rule can be used for Apache (using mod_rewrite).
    
    Note that the current routing front end only works if PATH_INFO is
    provided.
    
    Signed-off-by: default avatarLukas Fleischer <archlinux@cryptocrack.de>
    eb22bcc7