Guide
Building a redirect page with meta refresh and a script backup
The right way to move a page is a redirect sent by the web server, which tells browsers and search engines in the response itself that the address has changed. Some sites cannot do that. A page hosted on a static file service, a documentation system or a free site builder may allow you to upload an HTML file but not to change server rules. For those cases a small HTML page that forwards visitors can do the job. This generator writes that page.
What the page contains
The head holds a meta element with http-equiv="refresh" and a content value made of the delay and the target, such as 0;url=https://shop.example/new-page. The body holds a short message, “This page has moved to” followed by a link to the new address, and, if you keep the option on, a one-line script that calls window.location.replace to the same address. The script makes the jump happen without adding a step to the browser history. The address is escaped so that quotes and ampersands cannot break the markup.
The delay
A delay of 0 sends the visitor at once. That is almost always what you want. A longer delay is sometimes used for notices such as “you will be redirected in five seconds”, but the tool warns that anything above a few seconds hurts visitors and accessibility, because people who read slowly or use assistive technology may not finish before the page changes. The field accepts whole seconds from 0 to 3600.
Canonical or noindex
The tool offers a switch for a canonical tag. When it is on, the page declares the target address as its canonical, which tells search engines that the target is the page to index. When it is off, the page carries a robots noindex meta tag instead, which asks search engines not to list the redirect page itself. The two are never written together, because a noindex and a canonical on the same page send conflicting signals.
The complete page or just the tags
Two outputs are provided. The complete page is a full HTML file you can save as an old address such as old-page.html and upload. The tags-only output holds just the head tags, for a page that already exists and needs to forward. Check the saved file in a browser, and test it with a crawler or the URL inspection tool of a search engine.
A worked example
The sample moves a page to https://shop.example/new-page with no delay, the canonical option and the script on. The page opens with a doctype and a title “Redirecting…”, then the line <meta http-equiv="refresh" content="0;url=https://shop.example/new-page" /> and a canonical link to the same address. The body has window.location.replace("https://shop.example/new-page"); and a paragraph with a link. The result row reads “Delay 0 seconds”. Setting the delay to 3 changes the content value to 3;url=https://shop.example/new-page.
Limits
A meta refresh is not an HTTP status. Browsers follow it, but it is slower, it can break the back button when the page is not replaced and it may not pass signals the way a 301 does. The tool writes the page and never visits either address, so confirm that the target works. For a whole site, use the rules of your server or host, and keep the redirect pages only for what you cannot configure.
Related tools
- Redirect Generator writes server rules for 301 and 302 redirects.
- Canonical Tag Generator cleans an address into its preferred form.
- robots.txt Generator and Tester ensures that crawlers may reach the redirect page.
- SERP Snippet Simulator previews how the target page will appear in results.
Checked against the current version of the Meta Refresh & JS Redirect Generator on .

