1Panel-dev / 1Panel-dev/1Panel
[Feature] Redirect exact path
Open
@wanghe-fit2cloud is already working on this.
Since Feb 18, 2026.
type: feature-request
- Dominant language
- Go
- Stars
- 37k
- Forks
- 3.4k
- Avg merge
- 9h 16m
- Merged PRs (30d)
- 105
Description
1Panel Version
v2.1.0
Please describe your needs or suggestions for improvements
In a static website, I need to setup a redirect rule matching / exactly. Currently, if I select redirect type "path" and write "/", ALL requests are redirected, not just those against the index (/) page
Please describe the solution you suggest
In addition to "Domain", "path", "404" redirect types, support "Exact path":
rewrite ^/$ https://example.com/? redirect;
// or more correctly:
location = / {
return 302 https://example.com;
}
Additional Information
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.