Firefox Browser Add-ons
  • Extensions
  • Themes
    • for Firefox
    • Dictionaries & Language Packs
Log in
Preview of Redirect to Local

Redirect to Local by itsberkelium

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

0 (0 reviews)0 (0 reviews)
Download Firefox and get the extension
Download file

Extension Metadata

Screenshots
About this extension
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).
Rated 0 by 0 reviewers
Log in to rate this extension
There are no ratings yet

Star rating saved

5
0
4
0
3
0
2
0
1
0
No reviews yet
Permissions and data

Optional permissions:

  • Access your data for all websites

Data collection:

  • The developer says this extension doesn't require data collection.
Learn more
More information
Add-on Links
  • Support site
  • Support Email
  • Copy add-on ID
Version
0.1.2
Size
13.12 KB
Last updated
7 days ago (Sep 25, 2026)
Related Categories
  • Web Development
License
Mozilla Public License 2.0
Version History
  • See all versions
Add to collection
Report this add-on
Go to Mozilla's homepage

Add-ons

  • About
  • Firefox Add-ons Blog
  • Extension Workshop
  • Developer Hub
  • Developer Policies
  • Community Blog
  • Forum
  • Report a bug
  • Review Guide

Download

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

Latest Builds

  • Nightly
  • Beta

Firefox for Business

  • Enterprise

Community

  • Connect
  • Contribute
  • Developer

Follow

  • Instagram
  • YouTube
  • TikTok
  • Bluesky
  • Podcast
  • Privacy
  • Cookies
  • Legal

Except where otherwise noted, content on this site is licensed under the Creative Commons Attribution Share-Alike License v3.0 or any later version.