Skip to content

📁 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

Released under the MIT License.