{"issue":{"title":"Define constants for paths","created_at":"2011-12-23T13:31:56Z","user":{"login":"TomVanmechelen","id":806934,"url":"https://api.github.com/users/TomVanmechelen","gravatar_id":"3a31a4c300bcbf0836096f156c92f0f7","avatar_url":"https://secure.gravatar.com/avatar/3a31a4c300bcbf0836096f156c92f0f7?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png"},"milestone":null,"updated_at":"2011-12-23T15:48:56Z","labels":[],"state":"open","id":2647156,"closed_at":null,"html_url":"https://github.com/libis/Omeka/issues/57","pull_request":{"patch_url":null,"html_url":null,"diff_url":null},"body":"De variabelen die gebruikt worden in paths.php voor het opbouwen van de \"constants for paths and other global metadata' zijn niet altijd goed gekozen (of verwerkt).\r\n\r\nOnderstaan de stukjes code werden toegevoegd in function _define_web_root()\r\n------------------------------------------------------------------------------------------------------------------------------------------------\r\n\tif ( $_SERVER['REDIRECT_URL'] ){\r\n\t\t$strip_from_urls = (str_replace($_SERVER['REQUEST_URI'], '', $_SERVER['REDIRECT_URL']));\r\n\t}\r\n------------------------------------------------------------------------------------------------------------------------------------------------\r\n\t$base_url = str_replace($strip_from_urls, \"\", $base_url);\r\n------------------------------------------------------------------------------------------------------------------------------------------------\r\n\tdefine('WEB_ROOT', $base_root . str_replace($strip_from_urls, \"\", (!empty($dir) ? '/' . $dir : '') ) );\r\n------------------------------------------------------------------------------------------------------------------------------------------------\r\n\r\nMss moeten er in de toekomst nog variabele worden aangepast zodat er rekening wordt gehouden met de rewrite die wordt aangestuurd door de .htaccess in de root directory\r\nVOORBEELD:\r\nRewriteCond %{HTTP_HOST} hetvirtueleland.be\r\nRewriteCond %{REQUEST_URI} !^/cag\r\nRewriteRule ^(.*)$ cag/$1 [L]\r\n","number":57,"url":"https://api.github.com/repos/libis/Omeka/issues/57","comments":1,"assignee":null},"comment":{"created_at":"2011-12-23T15:48:56Z","user":{"login":"samalloing","id":650574,"url":"https://api.github.com/users/samalloing","gravatar_id":"56aabbd4dcd156db6837951b2e853925","avatar_url":"https://secure.gravatar.com/avatar/56aabbd4dcd156db6837951b2e853925?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png"},"updated_at":"2011-12-23T15:48:56Z","id":3261962,"body":"Je mag dit toevoegen aan de wiki van github: https://github.com/libis/Omeka/wiki; Je mag ook een patch maken voor Omeka als je denkt dat die van Omeka het moeten aanpassen","url":"https://api.github.com/repos/libis/Omeka/issues/comments/3261962"},"action":"created"}