{"action":"created","issue":{"url":"https://api.github.com/repos/YOURLS/YOURLS/issues/1904","labels_url":"https://api.github.com/repos/YOURLS/YOURLS/issues/1904/labels{/name}","comments_url":"https://api.github.com/repos/YOURLS/YOURLS/issues/1904/comments","events_url":"https://api.github.com/repos/YOURLS/YOURLS/issues/1904/events","html_url":"https://github.com/YOURLS/YOURLS/issues/1904","id":77741723,"number":1904,"title":"Redirect all unused domains to a specific site","user":{"login":"shawaj","id":3359418,"avatar_url":"https://avatars.githubusercontent.com/u/3359418?v=3","gravatar_id":"","url":"https://api.github.com/users/shawaj","html_url":"https://github.com/shawaj","followers_url":"https://api.github.com/users/shawaj/followers","following_url":"https://api.github.com/users/shawaj/following{/other_user}","gists_url":"https://api.github.com/users/shawaj/gists{/gist_id}","starred_url":"https://api.github.com/users/shawaj/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/shawaj/subscriptions","organizations_url":"https://api.github.com/users/shawaj/orgs","repos_url":"https://api.github.com/users/shawaj/repos","events_url":"https://api.github.com/users/shawaj/events{/privacy}","received_events_url":"https://api.github.com/users/shawaj/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":6,"created_at":"2015-05-18T17:42:53Z","updated_at":"2015-05-19T21:24:40Z","closed_at":"2015-05-19T06:03:07Z","body":"There is a useful plugin \"fallback url\" that will redirect something like http://sho.rt/nonexistant to http://fallbackurl.com however this does not work in all instances\r\n\r\n- if you put just http://sho.rt it does not redirect to fallback url, but gives a permissions error\r\n- if you put http://sho.rt/examplefile.html or anything with a file ending, it redirects back to http://sho.rt instead of back to the fallback url and gives a permissions error\r\n\r\nIs there a way using .htaccess or otherwise to rectify this?\r\n\r\nThanks"},"comment":{"url":"https://api.github.com/repos/YOURLS/YOURLS/issues/comments/103670748","html_url":"https://github.com/YOURLS/YOURLS/issues/1904#issuecomment-103670748","issue_url":"https://api.github.com/repos/YOURLS/YOURLS/issues/1904","id":103670748,"user":{"login":"shawaj","id":3359418,"avatar_url":"https://avatars.githubusercontent.com/u/3359418?v=3","gravatar_id":"","url":"https://api.github.com/users/shawaj","html_url":"https://github.com/shawaj","followers_url":"https://api.github.com/users/shawaj/followers","following_url":"https://api.github.com/users/shawaj/following{/other_user}","gists_url":"https://api.github.com/users/shawaj/gists{/gist_id}","starred_url":"https://api.github.com/users/shawaj/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/shawaj/subscriptions","organizations_url":"https://api.github.com/users/shawaj/orgs","repos_url":"https://api.github.com/users/shawaj/repos","events_url":"https://api.github.com/users/shawaj/events{/privacy}","received_events_url":"https://api.github.com/users/shawaj/received_events","type":"User","site_admin":false},"created_at":"2015-05-19T21:24:40Z","updated_at":"2015-05-19T21:24:40Z","body":"So why does that plugin exist then?\n\nDoes it maybe remove a step in the redirects?\n\nThanks\nOn 19 May 2015 7:07 pm, \"Christian Taube\" <notifications@github.com> wrote:\n\n> Yes, indeed!\n>\n> That is why I don't understand what that plugin should be good for…\n>\n> There is no index.php shipped within the default installation of YOURLS.\n> This should result in a 404 error (file not found) when using an invalid\n> URL - which is a safe default, IMO.\n>\n> If you want something else - like a redirection elsewhere or a simple page\n> with usage instructions or whatever, this is supposed to be done by the\n> admin.\n>\n> My index page is actually just static html with some javascript in it. No\n> plugin installed.\n>\n> —\n> Reply to this email directly or view it on GitHub\n> <https://github.com/YOURLS/YOURLS/issues/1904#issuecomment-103617022>.\n>\n"}}