{"id":9641,"date":"2026-06-03T07:59:30","date_gmt":"2026-06-03T05:59:30","guid":{"rendered":"https:\/\/mybox.com\/help\/?post_type=manual_kb&#038;p=9641"},"modified":"2026-06-03T07:59:31","modified_gmt":"2026-06-03T05:59:31","slug":"cum-se-redirectioneaza-un-site-web-folosind-eticheta-meta-refresh","status":"publish","type":"manual_kb","link":"https:\/\/mybox.com\/help\/ro\/knowledgebase\/how-to-redirect-a-website-using-the-meta-refresh-tag\/","title":{"rendered":"Cum s\u0103 redirec\u021biona\u021bi un site web utiliz\u00e2nd eticheta Meta Refresh"},"content":{"rendered":"<div class=\"translation-block translation-block-merged\">\n<p class=\"wp-block-paragraph\">One simple way to redirect visitors from an old webpage or domain to a new address is to use the <strong>Meta Refresh<\/strong> tag.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">This method instructs the visitor&#8217;s browser to automatically load a different URL after a specified amount of time.<\/p>\n\n\n\n<div id=\"ez-toc-container\" class=\"ez-toc-v2_0_86 ez-toc-wrap-left counter-hierarchy ez-toc-counter ez-toc-custom ez-toc-container-direction\">\n<div class=\"ez-toc-title-container\">\n<p class=\"ez-toc-title\" style=\"cursor:inherit\">Table of Contents<\/p>\n<span class=\"ez-toc-title-toggle\"><\/span><\/div>\n<nav><ul class='ez-toc-list ez-toc-list-level-1' ><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-1\" href=\"https:\/\/mybox.com\/help\/ro\/knowledgebase\/how-to-redirect-a-website-using-the-meta-refresh-tag\/#How_Meta_Refresh_Works\" >How Meta Refresh Works<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-2\" href=\"https:\/\/mybox.com\/help\/ro\/knowledgebase\/how-to-redirect-a-website-using-the-meta-refresh-tag\/#Example_HTML_File\" >Example HTML File<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-3\" href=\"https:\/\/mybox.com\/help\/ro\/knowledgebase\/how-to-redirect-a-website-using-the-meta-refresh-tag\/#Uploading_the_File\" >Uploading the File<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-4\" href=\"https:\/\/mybox.com\/help\/ro\/knowledgebase\/how-to-redirect-a-website-using-the-meta-refresh-tag\/#Delayed_Redirects\" >Delayed Redirects<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-5\" href=\"https:\/\/mybox.com\/help\/ro\/knowledgebase\/how-to-redirect-a-website-using-the-meta-refresh-tag\/#Meta_Refresh_vs_HTTP_Redirects\" >Meta Refresh vs. HTTP Redirects<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-6\" href=\"https:\/\/mybox.com\/help\/ro\/knowledgebase\/how-to-redirect-a-website-using-the-meta-refresh-tag\/#Summary\" >Summary<\/a><\/li><\/ul><\/nav><\/div>\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"How_Meta_Refresh_Works\"><\/span>How Meta Refresh Works<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<\/div>\n\n<div id=\"mybox-1871597611\" class=\"mybox-content mybox-entity-placement\"><div class=\"early-access-banner-inpost\">\r\n  <div class=\"banner-left-inpost\">\r\n    <div class=\"icon-box-inpost\">\r\n      <img decoding=\"async\" src=\"https:\/\/mybox.com\/help\/wp-content\/uploads\/2026\/02\/square-info-icon.svg\" alt=\"Info\">\r\n    <\/div>\r\n    <div class=\"text-box-inpost\">\r\n      <span class=\"label-inpost\"><span class=\"translation-block translation-block-banner-text\">Acces timpuriu<\/span><\/span>\r\n      <h4><span class=\"translation-block translation-block-banner-text\">Mai ave\u021bi nevoie de ajutor?<\/span><\/h4>\r\n      <p><span class=\"translation-block translation-block-banner-text\">Contacta\u021bi echipa noastr\u0103 de servicii pentru clien\u021bi.<\/span><\/p>\r\n    <\/div>\r\n  <\/div>\r\n\r\n  <div class=\"banner-right-inpost\">\r\n    <a href=\"https:\/\/panel.mybox.com\/helpdesk2\/v\/list\/\" class=\"banner-button-inpost\"><span class=\"translation-block translation-block-banner-text\">Trimite mesaj<\/span><\/a>\r\n  <\/div>\r\n<\/div><\/div>\n\n<div class=\"translation-block translation-block-merged\"><p class=\"wp-block-paragraph\">The redirect is performed using the following HTML tag:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>&lt;meta http-equiv=\"Refresh\" content=\"0; url=https:\/\/new-domain.com\" \/&gt;<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">The value:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>0<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">specifies the delay in seconds before the redirect occurs.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">A value of <code>0<\/code> means the redirect happens immediately.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Example_HTML_File\"><\/span>Example HTML File<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Create a file named:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>index.html<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">and add the following content:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>&lt;!doctype html&gt;<br>&lt;html lang=\"en\"&gt;<br>&lt;head&gt;<br>  &lt;meta charset=\"utf-8\"&gt;<br>  &lt;meta http-equiv=\"Refresh\" content=\"0; url=https:\/\/new-domain.com\" \/&gt;<br>&lt;\/head&gt;<br>&lt;body&gt;<br>  Redirecting...<br>&lt;\/body&gt;<br>&lt;\/html&gt;<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Replace:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>https:&#47;&#47;new-domain.com<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">with the destination URL where visitors should be redirected.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Uploading_the_File\"><\/span>Uploading the File<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Place the <code>index.html<\/code> file in the website&#8217;s root directory.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">By default, this is:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>public_html<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Example:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>yourdomain.com\/public_html\/index.html<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">When a visitor accesses the website, the browser will automatically redirect them to the specified address.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Delayed_Redirects\"><\/span>Delayed Redirects<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">You can display a message before redirecting users by increasing the delay value.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Example:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>&lt;meta http-equiv=\"Refresh\" content=\"5; url=https:\/\/new-domain.com\" \/&gt;<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">This redirects the visitor after 5 seconds.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">You may also customize the page content:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>&lt;!doctype html&gt;<br>&lt;html lang=\"en\"&gt;<br>&lt;head&gt;<br>  &lt;meta charset=\"utf-8\"&gt;<br>  &lt;meta http-equiv=\"Refresh\" content=\"5; url=https:\/\/new-domain.com\" \/&gt;<br>&lt;\/head&gt;<br>&lt;body&gt;<br>  &lt;p&gt;You are being redirected to our new website...&lt;\/p&gt;<br>&lt;\/body&gt;<br>&lt;\/html&gt;<\/code><\/pre>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Meta_Refresh_vs_HTTP_Redirects\"><\/span>Meta Refresh vs. HTTP Redirects<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">While Meta Refresh redirects are simple to implement, they are generally not recommended for permanent website migrations.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">For permanent redirects, it is better to use:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><code>.htaccess<\/code> redirects (Apache)<\/li>\n\n\n\n<li>Nginx redirect rules<\/li>\n\n\n\n<li>Control panel redirect tools<\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\">These methods use HTTP status codes such as:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>301 Moved Permanently<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">which are preferred by search engines and browsers.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Meta Refresh redirects are most useful when:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>You cannot modify server configuration.<\/li>\n\n\n\n<li>You only need to redirect a single page.<\/li>\n\n\n\n<li>You need a temporary client-side redirect.<\/li>\n<\/ul>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Summary\"><\/span>Summary<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">To redirect visitors using the Meta Refresh tag:<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li>Create an <code>index.html<\/code> file.<\/li>\n\n\n\n<li>Add a Meta Refresh tag pointing to the destination URL.<\/li>\n\n\n\n<li>Upload the file to the website&#8217;s root directory (<code>public_html<\/code>).<\/li>\n<\/ol>\n\n\n\n<p class=\"wp-block-paragraph\">Example:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>&lt;meta http-equiv=\"Refresh\" content=\"0; url=https:\/\/new-domain.com\" \/&gt;<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">This will automatically redirect visitors from the current page to the specified address when the page is loaded.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n<\/div>","protected":false},"author":1,"featured_media":0,"parent":0,"menu_order":0,"template":"","format":"standard","manualknowledgebasecat":[125],"manual_kb_tag":[2599,2611,4871,4993,5062,5063,5064,5065,5066,5067],"class_list":["post-9641","manual_kb","type-manual_kb","status-publish","format-standard","hentry","manualknowledgebasecat-websites","manual_kb_tag-permanent-redirect","manual_kb_tag-htaccess-redirect","manual_kb_tag-30-redirect","manual_kb_tag-temporary-redirect","manual_kb_tag-meta-refresh","manual_kb_tag-html-redirect","manual_kb_tag-meta-tag-redirect","manual_kb_tag-delayed-redirect","manual_kb_tag-immediate-redirect","manual_kb_tag-client-side-redirect"],"_links":{"self":[{"href":"https:\/\/mybox.com\/help\/ro\/wp-json\/wp\/v2\/manual_kb\/9641","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/mybox.com\/help\/ro\/wp-json\/wp\/v2\/manual_kb"}],"about":[{"href":"https:\/\/mybox.com\/help\/ro\/wp-json\/wp\/v2\/types\/manual_kb"}],"author":[{"embeddable":true,"href":"https:\/\/mybox.com\/help\/ro\/wp-json\/wp\/v2\/users\/1"}],"version-history":[{"count":1,"href":"https:\/\/mybox.com\/help\/ro\/wp-json\/wp\/v2\/manual_kb\/9641\/revisions"}],"predecessor-version":[{"id":9643,"href":"https:\/\/mybox.com\/help\/ro\/wp-json\/wp\/v2\/manual_kb\/9641\/revisions\/9643"}],"wp:attachment":[{"href":"https:\/\/mybox.com\/help\/ro\/wp-json\/wp\/v2\/media?parent=9641"}],"wp:term":[{"taxonomy":"manualknowledgebasecat","embeddable":true,"href":"https:\/\/mybox.com\/help\/ro\/wp-json\/wp\/v2\/manualknowledgebasecat?post=9641"},{"taxonomy":"manual_kb_tag","embeddable":true,"href":"https:\/\/mybox.com\/help\/ro\/wp-json\/wp\/v2\/manual_kb_tag?post=9641"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}