{"id":16131790,"url":"https://github.com/bcopy/redirect-servlet","last_synced_at":"2025-04-06T14:41:03.320Z","repository":{"id":73468562,"uuid":"39376764","full_name":"bcopy/redirect-servlet","owner":"bcopy","description":null,"archived":false,"fork":false,"pushed_at":"2014-02-01T00:26:21.000Z","size":172,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-12T20:43:23.511Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Java","has_issues":false,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/bcopy.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-07-20T10:06:32.000Z","updated_at":"2017-07-16T18:49:00.000Z","dependencies_parsed_at":"2023-02-22T06:25:36.001Z","dependency_job_id":null,"html_url":"https://github.com/bcopy/redirect-servlet","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/bcopy%2Fredirect-servlet","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bcopy%2Fredirect-servlet/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bcopy%2Fredirect-servlet/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bcopy%2Fredirect-servlet/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bcopy","download_url":"https://codeload.github.com/bcopy/redirect-servlet/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247500203,"owners_count":20948874,"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-10-09T22:27:03.277Z","updated_at":"2025-04-06T14:41:03.297Z","avatar_url":"https://github.com/bcopy.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# redirect-servlet.war\n\nUse this when you depressingly find out that you can't use an HTTP server for\nyour redirects and instead are limited to your Java EE application server.\n\nWhen deployed, it will redirect any path inside the application's context root\nto a configurable new URL, including parameters.\n\nExample:\n\n| WAR context root  | ```new.base.url```          | User enters                                               | Redirected to                                            |\n| ----------------- | --------------------------- | --------------------------------------------------------- | -------------------------------------------------------- |\n| /redirect-servlet | http://newsite.com          | http://oldsite.com/redirect-servlet/index.html?page=about | http://newsite.com/index.html?page=about                 |\n| /redirect-servlet | http://newsite.com          | http://oldsite.com/redirect-servlet/page/about/me         | http://newsite.com/page/about/me                         |\n| /redirect-servlet | / _(or blank)_              | http://oldsite.com/redirect-servlet/mypage.html           | http://oldsite.com/mypage.html                           |\n| /redirect-servlet | /some-servlet               | http://oldsite.com/redirect-servlet/mypage.html           | http://oldsite.com/some-servlet/mypage.html              |\n| /redirect-servlet | new-path                    | http://oldsite.com/redirect-servlet/mypage.html           | http://oldsite.com/redirect-servlet/new-path/mypage.html |\n| /                 | http://newsite.com/wiki     | http://oldsite.com/                                       | http://newsite.com/wiki/                                 |\n| /example          | http://newsite.com/personal | http://oldsite.com/example/mypage.html                    | http://newsite.com/personal/mypage.html                  |\n\n## Compatibility\n\nJava EE 5 / Servlet 2.5 and higher (tested on WebSphere Application Server 7)\n\nLots of quirks on J2EE 1.4 / Servlet 2.4 (modification required for WebSphere\nApplication Server 6.1)\n\n## Usage\n\nUpdate ```src/main/webapp/WEB-INF/application.properties``` with your desired\n```new.base.url```.  This is formatted at runtime to remove a trailing ```/```\nif it is present.\n\nRun ```mvn clean package``` to build the WAR.\n\nDeploy to your application server.  You may have to rename the WAR depending\non how your container determines the context root.\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbcopy%2Fredirect-servlet","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbcopy%2Fredirect-servlet","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbcopy%2Fredirect-servlet/lists"}