{"id":19205116,"url":"https://github.com/yourls/404-if-not-found","last_synced_at":"2025-05-12T16:44:00.809Z","repository":{"id":148165320,"uuid":"258785393","full_name":"YOURLS/404-if-not-found","owner":"YOURLS","description":"Redirect with a 404 when short URL is not found","archived":false,"fork":false,"pushed_at":"2023-12-16T19:34:41.000Z","size":11,"stargazers_count":27,"open_issues_count":1,"forks_count":8,"subscribers_count":6,"default_branch":"master","last_synced_at":"2025-05-06T12:26:21.814Z","etag":null,"topics":["404","yourls","yourls-plugin"],"latest_commit_sha":null,"homepage":null,"language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"wtfpl","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/YOURLS.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null},"funding":{"github":["YOURLS","ozh","LeoColomb","dgw"],"open_collective":"yourls"}},"created_at":"2020-04-25T13:42:15.000Z","updated_at":"2025-04-27T18:35:02.000Z","dependencies_parsed_at":"2023-12-30T10:32:40.549Z","dependency_job_id":"4a325d96-056c-46c0-b3f4-e62ba1629be3","html_url":"https://github.com/YOURLS/404-if-not-found","commit_stats":{"total_commits":9,"total_committers":1,"mean_commits":9.0,"dds":0.0,"last_synced_commit":"a611040c6f33cd6d00b07ddb824b9842ed2de2de"},"previous_names":[],"tags_count":3,"template":false,"template_full_name":"YOURLS/plugin-sample","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/YOURLS%2F404-if-not-found","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/YOURLS%2F404-if-not-found/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/YOURLS%2F404-if-not-found/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/YOURLS%2F404-if-not-found/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/YOURLS","download_url":"https://codeload.github.com/YOURLS/404-if-not-found/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":253778475,"owners_count":21962875,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["404","yourls","yourls-plugin"],"created_at":"2024-11-09T13:11:23.291Z","updated_at":"2025-05-12T16:44:00.785Z","avatar_url":"https://github.com/YOURLS.png","language":"PHP","funding_links":["https://github.com/sponsors/YOURLS","https://github.com/sponsors/ozh","https://github.com/sponsors/LeoColomb","https://github.com/sponsors/dgw","https://opencollective.com/yourls"],"categories":[],"sub_categories":[],"readme":"# YOURLS plugin : 404 if not found [![Listed in Awesome YOURLS!](https://img.shields.io/badge/Awesome-YOURLS-C5A3BE)](https://github.com/YOURLS/awesome-yourls/)\n\nBy default and by design, when a requested short URL is not found, YOURLS redirects to the site root with a \"302 temporary redirect\" header.\n\nFrom the source:\n```php\nyourls_redirect( YOURLS_SITE, 302 ); // no 404 to tell browser this might change,\n                                     // and also to not pollute logs\n```\n\nThis plugin outputs a default \"`404 not found`\" error page instead.\n\n## Installation\n\n1. In `/user/plugins`, create a new folder named `404-if-not-found`.\n2. Drop these files in that directory.\n3. Go to the Plugins administration page (eg. `http://sho.rt/admin/plugins.php`) and activate the plugin.\n4. Have fun!\n\n## License\n\nDo whatever the hell you want with this.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyourls%2F404-if-not-found","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fyourls%2F404-if-not-found","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyourls%2F404-if-not-found/lists"}