Firefox 浏览器附加组件
  • 扩展
  • 主题
    • 适用于 Firefox
    • 字典和语言包
登录
Redirect to Local 预览

Redirect to Local 作者: itsberkelium

Redirect a configured website to localhost when your development server is running.

0(0 条评价)0(0 条评价)
尚无用户尚无用户
下载 Firefox 并安装扩展
下载文件

扩展元数据

屏幕截图
关于此扩展
Automatically open the local version of a website when your development server is running.

Enter your website URL and localhost port once. When you visit a matching URL, Redirect to Local checks your local server. If it responds, the extension redirects you to localhost while preserving the full path and query string. If your server is unavailable, you stay on the original website.


With website https://example.com and port 3000:

https://example.com/test?a=b
→ http://localhost:3000/test?a=b

Deep links, nested paths, and query parameters carry over automatically.


Automatic availability checks: Checks localhost before each matching page navigation.
Fallback to the original website: If localhost is unreachable or doesn’t respond within 1.5 seconds, navigation continues normally.
Preserves paths and query strings: Open the corresponding local page without manually editing the address.
Saved settings: Your website URL and localhost port are stored locally in Firefox.
Pause and resume: Temporarily stop redirects without losing your configuration. Your pause preference persists across browser restarts.
Exact host matching: Only the configured hostname and port match. Subdomains are treated separately.


Open Redirect to Local from Firefox’s extensions menu.
Enter your development server’s port, such as 3000.
Enter the website URL, such as https://example.com.
Click Save settings.
Start your local server and visit the website.

Use Pause redirects whenever you want to browse the remote website while your local server is running.


The extension sends a lightweight HEAD request to http://localhost:PORT/. Any HTTP response confirms that the server is reachable—even if the root path returns an error such as 404.

Matching works across HTTP and HTTPS source URLs. The local destination always uses HTTP. If you enter a website URL containing a path, the extension saves its origin and matches all paths on that host.

Redirects apply to ordinary top-level GET navigations. Form POST submissions, embedded frames, and background requests are not redirected. Existing tabs are not automatically moved between the remote and local website.


Redirect to Local has no analytics or external service. Your website URL, localhost port, and pause preference are stored locally in Firefox.

Website access is required to detect matching navigations and check localhost availability.


Firefox 142 or later
A local development server accessible at http://localhost:PORT


View the source code or report an issue on GitHub (https://github.com/itsberkelium/redirect-to-local).

Created by itsberkelium (https://berke.dev).
评分 0(1 位用户)
登录以评价此扩展
目前尚无评分

已保存星级评分

5
0
4
0
3
0
2
0
1
0
尚无评价
权限与数据

必要权限:

  • 获知浏览器导航时的行为状态

可选权限:

  • 访问您在所有网站的数据

收集的数据:

  • 开发者称此扩展无需收集数据。
详细了解
更多信息
附加组件链接
  • 用户支持网站
  • 支持邮箱
  • 复制附加组件 ID
版本
0.2.0
大小
18.46 KB
上次更新
6 天前 (2026年11月25日)
相关分类
  • 网页开发
许可证
Mozilla 公共许可证 2.0
版本历史
  • 查看所有版本
添加到收藏集
举报此附加组件
转至 Mozilla 主页

附加组件

  • 关于
  • Firefox 附加组件博客
  • 扩展工坊
  • 开发者中心
  • 开发者政策
  • 社区博客
  • 论坛
  • 报告缺陷
  • 评价指南

下载

  • Download Firefox
  • Windows
  • macOS
  • iOS
  • Android
  • Linux
  • All

最新版本

  • Nightly
  • Beta

商用版 Firefox

  • Enterprise

社区

  • Connect
  • Contribute
  • Developer

关注

  • Instagram
  • YouTube
  • TikTok
  • Bluesky
  • Podcast
  • 隐私
  • Cookie
  • 法律

除非另有注明,否则本网站上的内容可按知识共享 署名-相同方式共享 3.0 或更新版本使用。