{"id":22792651,"url":"https://github.com/johnantoni/subdir_redirect","last_synced_at":"2025-03-30T17:17:37.445Z","repository":{"id":5283085,"uuid":"6462393","full_name":"johnantoni/subdir_redirect","owner":"johnantoni","description":"take the subdomain value, remove the root name and keep the end value then redirect. so subdir.site.ca =\u003e subdir.ca","archived":false,"fork":false,"pushed_at":"2012-10-30T18:42:07.000Z","size":100,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-02-05T19:08:48.498Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Ruby","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/johnantoni.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2012-10-30T18:38:52.000Z","updated_at":"2019-02-10T18:16:13.000Z","dependencies_parsed_at":"2022-07-04T22:30:22.969Z","dependency_job_id":null,"html_url":"https://github.com/johnantoni/subdir_redirect","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/johnantoni%2Fsubdir_redirect","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/johnantoni%2Fsubdir_redirect/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/johnantoni%2Fsubdir_redirect/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/johnantoni%2Fsubdir_redirect/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/johnantoni","download_url":"https://codeload.github.com/johnantoni/subdir_redirect/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246351016,"owners_count":20763232,"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":[],"created_at":"2024-12-12T03:15:40.931Z","updated_at":"2025-03-30T17:17:37.413Z","avatar_url":"https://github.com/johnantoni.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"# subdir_redirect\n\n## Description\n\nAnother change to kjohnston's naked_redirect so all subdomains \u0026 naked domains redirect to =\u003e www.mydomain.com\n\nA Sinatra app that converts the subdomain value to a domain and redirects to that.\n\nFor example, a request for `http://subdir.domain.ca` would be redirected to `http://www.subdir.ca`.\n\n## Behavior\n\nThe protocol, host and query string are preserved during redirections.  However, the app only responds to GET requests.\n\n## Deployment\n\nThis app is easily deployable to Heroku, but you can run it anywhere you can run a Rack app.\n\nThe app will redirect any domain pointed to it, so you'll just need to create an A record pointing to the IP where the app is hosted for each domain you want it to handle redirection for.\n\n## License\n\n* Freely distributable and licensed under the [MIT license](http://kjohnston.mit-license.org/license.html).\n* Copyright (c) 2012 Kenny Johnston [![endorse](http://api.coderwall.com/kjohnston/endorsecount.png)](http://coderwall.com/kjohnston)\n* Copyright (c) 2012 John Griffiths [![endorse](http://api.coderwall.com/johnantoni/endorsecount.png)](http://coderwall.com/johnantoni)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjohnantoni%2Fsubdir_redirect","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjohnantoni%2Fsubdir_redirect","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjohnantoni%2Fsubdir_redirect/lists"}