{"action":"opened","issue":{"url":"https://api.github.com/repos/slimphp/Slim/issues/1569","labels_url":"https://api.github.com/repos/slimphp/Slim/issues/1569/labels{/name}","comments_url":"https://api.github.com/repos/slimphp/Slim/issues/1569/comments","events_url":"https://api.github.com/repos/slimphp/Slim/issues/1569/events","html_url":"https://github.com/slimphp/Slim/issues/1569","id":114569509,"number":1569,"title":"Router not working properly on subdir","user":{"login":"vikkio88","id":248805,"avatar_url":"https://avatars.githubusercontent.com/u/248805?v=3","gravatar_id":"","url":"https://api.github.com/users/vikkio88","html_url":"https://github.com/vikkio88","followers_url":"https://api.github.com/users/vikkio88/followers","following_url":"https://api.github.com/users/vikkio88/following{/other_user}","gists_url":"https://api.github.com/users/vikkio88/gists{/gist_id}","starred_url":"https://api.github.com/users/vikkio88/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vikkio88/subscriptions","organizations_url":"https://api.github.com/users/vikkio88/orgs","repos_url":"https://api.github.com/users/vikkio88/repos","events_url":"https://api.github.com/users/vikkio88/events{/privacy}","received_events_url":"https://api.github.com/users/vikkio88/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-11-02T10:42:28Z","updated_at":"2015-11-02T10:42:28Z","closed_at":null,"body":"Hi all, I discovery this framework yday and I loved it. I have a small problem though, locally on my apache server everything was working fine, on the shared hosting though I have a problem on routing, basically all the first level routes works like a charm:\r\n```\r\nGET blabla.com/subdir/api/items\r\nGET blabla.com/subdir/api/ping\r\nGET blabla.com/subdir/api/blabla\r\n```\r\nthe problem appear once I try to access to more complex routes\r\n```\r\nGET blabla.com/subdir/api/items/2/blabla\r\n```\r\n\r\nI think it must be something related to the .htaccess, which, again locally was working.\r\n```\r\nRewriteEngine On\r\nRewriteCond %{REQUEST_FILENAME} !-f\r\nRewriteRule ^ index.php [QSA,L]\r\n```\r\ni put this in the same dir as the index.php file so /www/subdir/api\r\n\r\nIs that a problem of my hosting or someone else had this problem before? I was searching around either in the issues here and in the forum but I could not find anything related.\r\n\r\nThank you in advance"}}