{"issue":{"created_at":"2011-11-29T06:53:17Z","state":"open","updated_at":"2011-11-29T06:53:20Z","user":{"gravatar_id":"256406243346b9253f8610fb1d1e05f6","id":1215373,"url":"https://api.github.com/users/importer","avatar_url":"https://secure.gravatar.com/avatar/256406243346b9253f8610fb1d1e05f6?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","login":"importer"},"comments":3,"body":"When page extension is \".php\" instead of default \".html\", a bug occur in \"system/modules/frontend/Frontend.php\" at line 92 because the root page give the url fragment \"index\" instead of \"index.php\". The consequence is that http://www.mywebsite.com/ is automatically redirected to the page 404.\n\nTill this moment, I bypassed this problem using the hook \"getPageIdFromUrl\" with code :\n  if ($arrFragmentsr0=='index')\n    $arrFragmentsr0=null;\n    return array_unique($arrFragments);\nBut now, I would like a definitive solution without hack!!\n\n![](\n\nThe second thing is that after every automatic update, the file \"system/constants.php\" is overwritten and the URL_SUFFIX is put back to \".html\". The very irritating thing is that this value override the one I have in \"localconfig.php\", so that I have to modify manually \"constants.php\" after each update. Not very cool)\n\n--- _Originally created by anonymous on June 30th, 2009, at 02:59pm (ID 842)_","assignee":{"gravatar_id":"87d2e5aefadcb310f9155df28c2b3582","id":1192057,"url":"https://api.github.com/users/leofeyer","avatar_url":"https://secure.gravatar.com/avatar/87d2e5aefadcb310f9155df28c2b3582?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","login":"leofeyer"},"id":2379299,"pull_request":{"patch_url":null,"html_url":null,"diff_url":null},"labels":[{"name":"Defect","color":"bd2c00","url":"https://api.github.com/repos/contao/test/labels/Defect"},{"name":"frontend","color":"e6e6e6","url":"https://api.github.com/repos/contao/test/labels/frontend"},{"name":"Invalid","color":"ffdd00","url":"https://api.github.com/repos/contao/test/labels/Invalid"}],"number":842,"title":"bug in getPageIdFromUrl when page extension is .php","closed_at":null,"html_url":"https://github.com/contao/test/issues/842","url":"https://api.github.com/repos/contao/test/issues/842","milestone":null},"action":"created","comment":{"created_at":"2011-11-29T06:53:18Z","updated_at":"2011-11-29T06:53:18Z","user":{"gravatar_id":"87d2e5aefadcb310f9155df28c2b3582","id":1192057,"url":"https://api.github.com/users/leofeyer","avatar_url":"https://secure.gravatar.com/avatar/87d2e5aefadcb310f9155df28c2b3582?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","login":"leofeyer"},"body":"TYPOlight does not support `.php` as URL suffix. The feature is meant to generate static URLs, so there is no point in using `.php`. You might as well not use URL rewriting at all then.\n\n> after every automatic update, the file \"system/constants.php\" is overwritten\n\nThe URL suffix is stored in the local configuration file.\n\n--- _Originally created on July 10th, 2009, at 04:15pm_","id":2917974,"url":"https://api.github.com/repos/contao/test/issues/comments/2917974"}}