Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[ENHANCEMENT] Support regex rewrite rules #42

Closed
SaschMie opened this issue Aug 15, 2023 · 2 comments
Closed

[ENHANCEMENT] Support regex rewrite rules #42

SaschMie opened this issue Aug 15, 2023 · 2 comments
Labels
enhancement New feature or request

Comments

@SaschMie
Copy link

where can i set rewrite rules like this:

rewrite ^/.well-known/carddav https://cloud.dd.com/remote.php/dav/ redirect;
rewrite ^/.well-known/caldav https://cloud.dd.com/remote.php/dav/ redirect;

@SaschMie SaschMie added the bug Something isn't working label Aug 15, 2023
@tobychui
Copy link
Owner

Redirect rules with wildcard / regex (will be inside the "Advance Rule Editor" in future release) is work in progress.
You will be able to find this feature later in redirect > advance options > open advance rules editor in future versions of zoraxy.
圖片

In the mean time, if you have limited matching domains (aka the ^/ part of the regex above, like https://example.com), one of the work-around will be just code all of them in in the redirection rules tab like this. These rules can also be found as a text file inside the Zoraxy config file if you prefer a text base method of editing.
圖片

Or if you want to avoid the troubles, you can also wait for a later version of Zoraxy release with advance rules editor completed.

@tobychui tobychui changed the title rewrite rules [ENHANCEMENT] Support regex rewrite rules Aug 16, 2023
@tobychui tobychui added enhancement New feature or request and removed bug Something isn't working labels Aug 16, 2023
@tobychui
Copy link
Owner

tobychui commented Apr 4, 2024

圖片
Feature added in v3.0.1. Note that this will greatly slow down the page load speed so only enable this when required.

@tobychui tobychui closed this as completed Apr 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants