📁 Local File Redirect
Redirect local file paths to a remote server.
Configuration Rule
# Local File Redirect Test Configuration
*ChromeStore/localfile/*.html$####https://www.example.com/{2}/
*demo_local.html$####https://www.example.com/demo/
*autoredirect_local.html$####https://www.example.com/demo/
*ChromeStore/AutoRedirect/*.html####https://www.example.com/{2}/
💡 Rule Description
Supports mapping local file paths to remote URLs, ideal for development environments.
- Supports local files via the
file://
protocol. - Wildcards can be used for batch processing files.
- Suitable for mapping local development environments to production.
- Supports redirection while maintaining directory structure.
- Rules are prioritized: specific projects > generic matches.
- Supports placeholders like
{1}, {2}
to reference matched path segments.
How to Test
ChromeStore Project Test:Open
file:///path/to/ChromeStore/localfile/test.html
.Generic Demo File Test:Open
file:///path/to/demo_local.html
.AutoRedirect Project Test:Open
file:///path/to/ChromeStore/AutoRedirect/test.html
.Expected Result:Automatically redirects to the corresponding remote server address, preserving the path structure.