[{"data":1,"prerenderedAt":31},["ShallowReactive",2],{"doc-en-www-address-301-redirect-plesk":3},{"path":4,"slug":5,"title":6,"description":7,"category":8,"subcategory":9,"icon":10,"date":11,"author":12,"order":13,"image":14,"tags":15,"keywords":21,"docGroup":28,"docGroupIcon":28,"link_fr":29,"bodyHtml":30},"\u002Fdocs\u002Fen\u002Fcloud\u002Fhebergement-web\u002Fwww-address-301-redirect-plesk","www-address-301-redirect-plesk","How to Choose the Address With or Without www and Redirect a Page on Plesk","Choose the main address of your website with or without www in Plesk and redirect an old page, a folder or a whole domain with a 301 redirect.","cloud","hebergement-web","tabler:file-text","2026-11-02","Winheberg",155,"\u002Fstatics\u002Fimages\u002Fdocs\u002Fen\u002Fhebergement-web\u002Fwww-address-301-redirect-plesk.webp",[16,17,18,19,20],"Plesk","Redirect","SEO","htaccess","Web Hosting",[22,23,24,25,26,27],"301 redirect","www or non-www","plesk preferred domain","htaccess redirect","redirect a page","redirect a domain","","\u002Fdocs\u002Fhebergement-web\u002Fadresse-www-redirection-301-plesk","\u003Ch2>Context\u003C\u002Fh2>\n\u003Cp>Your website answers at two addresses, \u003Ccode>example.com\u003C\u002Fcode> and \u003Ccode>www.example.com\u003C\u002Fcode>. For search engines, these are two identical websites, which dilutes your ranking. The fix is to choose a main address and redirect the other one to it, with a 301 redirect, which signals a permanent move.\u003C\u002Fp>\n\u003Cp>On your \u003Ca href=\"https:\u002F\u002Fwinheberg.com\u002Fen\u002Fcloud\u002Fweb-hosting\">Winheberg web hosting\u003C\u002Fa>, Plesk handles this with a single setting. The same logic applies after a redesign, to send visitors and search engines from an old page to the new one, this time with the \u003Ccode>.htaccess\u003C\u002Fcode> file.\u003C\u002Fp>\n\u003Cp>This guide covers choosing the main address, redirecting a page, a folder or a whole domain, and checking the result.\u003C\u002Fp>\n\u003Cdiv class=\"markdown-alert markdown-alert-note\">\u003Cspan class=\"alert-icon\">\u003Csvg xmlns=\"http:\u002F\u002Fwww.w3.org\u002F2000\u002Fsvg\" width=\"16\" height=\"16\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\">\u003Ccircle cx=\"12\" cy=\"12\" r=\"10\"\u002F>\u003Cline x1=\"12\" y1=\"16\" x2=\"12\" y2=\"12\"\u002F>\u003Cline x1=\"12\" y1=\"8\" x2=\"12.01\" y2=\"8\"\u002F>\u003C\u002Fsvg>\u003C\u002Fspan>\u003Cdiv class=\"markdown-alert-body\">\u003Cp>The Winheberg Plesk panel is displayed in French. Menu, field and button names are quoted below exactly as they appear on screen, followed by their English meaning.\u003C\u002Fp>\n\u003C\u002Fdiv>\u003C\u002Fdiv>\n\u003Ch2>Prerequisites\u003C\u002Fh2>\n\u003Cul>\n\u003Cli>A Winheberg web hosting plan with access to the Plesk panel\u003C\u002Fli>\n\u003Cli>An SSL certificate that covers both addresses, with and without \u003Ccode>www\u003C\u002Fcode>, see our guide \u003Ca href=\"https:\u002F\u002Fwinheberg.com\u002Fen\u002Fdocs\u002Fhebergement-web\u002Flets-encrypt-ssl-certificate-plesk\">How to Generate a Let&#39;s Encrypt SSL Certificate for Your Website\u003C\u002Fa>\u003C\u002Fli>\n\u003C\u002Ful>\n\u003Cdiv class=\"markdown-alert markdown-alert-note\">\u003Cspan class=\"alert-icon\">\u003Csvg xmlns=\"http:\u002F\u002Fwww.w3.org\u002F2000\u002Fsvg\" width=\"16\" height=\"16\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\">\u003Ccircle cx=\"12\" cy=\"12\" r=\"10\"\u002F>\u003Cline x1=\"12\" y1=\"16\" x2=\"12\" y2=\"12\"\u002F>\u003Cline x1=\"12\" y1=\"8\" x2=\"12.01\" y2=\"8\"\u002F>\u003C\u002Fsvg>\u003C\u002Fspan>\u003Cdiv class=\"markdown-alert-body\">\u003Cp>Without a certificate for the \u003Ccode>www\u003C\u002Fcode> address, the browser shows a security warning before it even follows the redirect. Make sure to tick the \u003Ccode>www\u003C\u002Fcode> option when issuing the certificate.\u003C\u002Fp>\n\u003C\u002Fdiv>\u003C\u002Fdiv>\n\u003Ch2>1. Choose the main address\u003C\u002Fh2>\n\u003Cp>Open your domain from \u003Cstrong>Sites Web &amp; Domaines\u003C\u002Fstrong> (\u003Cem>Websites &amp; Domains\u003C\u002Fem>), then the \u003Cstrong>Hébergement et DNS\u003C\u002Fstrong> (\u003Cem>Hosting &amp; DNS\u003C\u002Fem>) tab and the \u003Cstrong>Hébergement\u003C\u002Fstrong> (\u003Cem>Hosting\u003C\u002Fem>) entry. In \u003Cstrong>Domaine préféré\u003C\u002Fstrong> (\u003Cem>Preferred domain\u003C\u002Fem>), choose the address to keep, then click \u003Cstrong>Enregistrer\u003C\u002Fstrong> (\u003Cem>Save\u003C\u002Fem>).\u003C\u002Fp>\n\u003Cimg src=\"\u002Fstatics\u002Fimages\u002Fdocs\u002Fen\u002Fhebergement-web\u002Fwww-address-301-redirect-plesk-1793619674860-92cb15e998700f10475517d3.webp\" alt=\"Preferred domain list in the Plesk Hosting Settings\" width=\"790\" \u002F>\n\n\u003Cdiv class=\"md-table md-table--info md-table--striped\">\u003Cdiv class=\"md-table__caption\">Preferred domain values\u003C\u002Fdiv>\u003Cdiv class=\"md-table__scroll\">\u003Ctable>\n\u003Cthead>\n\u003Ctr>\n\u003Cth>Value\u003C\u002Fth>\n\u003Cth>Result\u003C\u002Fth>\n\u003C\u002Ftr>\n\u003C\u002Fthead>\n\u003Ctbody>\u003Ctr>\n\u003Ctd>\u003Ccode>www.example.com\u003C\u002Fcode>\u003C\u002Ftd>\n\u003Ctd>\u003Ccode>example.com\u003C\u002Fcode> is redirected to \u003Ccode>www.example.com\u003C\u002Fcode>\u003C\u002Ftd>\n\u003C\u002Ftr>\n\u003Ctr>\n\u003Ctd>\u003Ccode>example.com\u003C\u002Fcode>\u003C\u002Ftd>\n\u003Ctd>\u003Ccode>www.example.com\u003C\u002Fcode> is redirected to \u003Ccode>example.com\u003C\u002Fcode>\u003C\u002Ftd>\n\u003C\u002Ftr>\n\u003Ctr>\n\u003Ctd>\u003Cstrong>Aucun\u003C\u002Fstrong> (\u003Cem>None\u003C\u002Fem>)\u003C\u002Ftd>\n\u003Ctd>Both addresses show the website, without redirect, to avoid\u003C\u002Ftd>\n\u003C\u002Ftr>\n\u003C\u002Ftbody>\u003C\u002Ftable>\n\u003C\u002Fdiv>\u003C\u002Fdiv>\n\u003Cp>The redirect keeps the path and parameters of the requested page, and switches to HTTPS along the way. On our test server, \u003Ccode>http:\u002F\u002Fwww.example.com\u002Fpage?x=1\u003C\u002Fcode> thus leads in a single redirect to \u003Ccode>https:\u002F\u002Fexample.com\u002Fpage?x=1\u003C\u002Fcode>.\u003C\u002Fp>\n\u003Cdiv class=\"markdown-alert markdown-alert-tip\">\u003Cspan class=\"alert-icon\">\u003Csvg xmlns=\"http:\u002F\u002Fwww.w3.org\u002F2000\u002Fsvg\" width=\"16\" height=\"16\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\">\u003Ccircle cx=\"12\" cy=\"12\" r=\"10\"\u002F>\u003Cpath d=\"M12 16v-4\"\u002F>\u003Cpath d=\"M12 8h.01\"\u002F>\u003C\u002Fsvg>\u003C\u002Fspan>\u003Cdiv class=\"markdown-alert-body\">\u003Cp>Both choices are equal for search engines. What matters is to choose one, stick to it and use the same form everywhere, in your links, your social networks and the settings of your CMS.\u003C\u002Fp>\n\u003C\u002Fdiv>\u003C\u002Fdiv>\n\u003Ch2>2. Redirect an old page\u003C\u002Fh2>\n\u003Cp>For page by page redirects, Plesk uses the \u003Ccode>.htaccess\u003C\u002Fcode> file placed at the root of your website, most often the \u003Ccode>httpdocs\u003C\u002Fcode> folder.\u003C\u002Fp>\n\u003Cp>Open \u003Cstrong>Fichiers\u003C\u002Fstrong> (\u003Cem>Files\u003C\u002Fem>) in the side menu, then the root folder of the website. Click \u003Ccode>.htaccess\u003C\u002Fcode> to open it in the editor. If it does not exist, create it with the \u003Cstrong>+\u003C\u002Fstrong> button, then \u003Cstrong>Créer un fichier\u003C\u002Fstrong> (\u003Cem>Create file\u003C\u002Fem>), naming it exactly \u003Ccode>.htaccess\u003C\u002Fcode>.\u003C\u002Fp>\n\u003Cp>Add one line per page to redirect, at the very top of the file, then click \u003Cstrong>Enregistrer\u003C\u002Fstrong> (\u003Cem>Save\u003C\u002Fem>).\u003C\u002Fp>\n\u003Cimg src=\"\u002Fstatics\u002Fimages\u002Fdocs\u002Fen\u002Fhebergement-web\u002Fwww-address-301-redirect-plesk-1793619675231-411a5ad280fb41a77c1dbd82.webp\" alt=\"Two 301 redirects added at the top of the .htaccess file in the Plesk editor\" width=\"800\" \u002F>\n\n\u003Cpre>\u003Ccode class=\"language-apache\">Redirect 301 \u002Fold-page.html https:\u002F\u002Fexample.com\u002Fnew-page\u002F\nRedirect 301 \u002Fblog https:\u002F\u002Fexample.com\u002Fnews\n\u003C\u002Fcode>\u003C\u002Fpre>\n\u003Cp>The first part is the path of the old page, without the domain. The second is the full address of the new page.\u003C\u002Fp>\n\u003Cdiv class=\"markdown-alert markdown-alert-warning\">\u003Cspan class=\"alert-icon\">\u003Csvg xmlns=\"http:\u002F\u002Fwww.w3.org\u002F2000\u002Fsvg\" width=\"16\" height=\"16\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\">\u003Cpath d=\"M10.29 3.86L1.82 18a2 2 0 0 0 1.71 3h16.94a2 2 0 0 0 1.71-3L13.71 3.86a2 2 0 0 0-3.42 0z\"\u002F>\u003Cline x1=\"12\" y1=\"9\" x2=\"12\" y2=\"13\"\u002F>\u003Cline x1=\"12\" y1=\"17\" x2=\"12.01\" y2=\"17\"\u002F>\u003C\u002Fsvg>\u003C\u002Fspan>\u003Cdiv class=\"markdown-alert-body\">\u003Cp>On a WordPress website, place your lines above \u003Ccode># BEGIN WordPress\u003C\u002Fcode>. WordPress rewrites everything between \u003Ccode># BEGIN WordPress\u003C\u002Fcode> and \u003Ccode># END WordPress\u003C\u002Fcode>, your redirects would be erased there.\u003C\u002Fp>\n\u003C\u002Fdiv>\u003C\u002Fdiv>\n\u003Ch2>3. Redirect a folder or a whole domain\u003C\u002Fh2>\n\u003Cp>When a whole section is renamed, a single line is enough to redirect each page to its counterpart.\u003C\u002Fp>\n\u003Cpre>\u003Ccode class=\"language-apache\">RedirectMatch 301 ^\u002Fblog\u002F(.*)$ https:\u002F\u002Fexample.com\u002Fnews\u002F$1\n\u003C\u002Fcode>\u003C\u002Fpre>\n\u003Cp>To send a whole old domain to the new one, add the old domain in Plesk as described in \u003Ca href=\"https:\u002F\u002Fwinheberg.com\u002Fen\u002Fdocs\u002Fhebergement-web\u002Fconnect-external-domain-plesk\">How to Connect an External Domain to Your Plesk Hosting\u003C\u002Fa>, then place these lines in the \u003Ccode>.htaccess\u003C\u002Fcode> of its website.\u003C\u002Fp>\n\u003Cpre>\u003Ccode class=\"language-apache\">RewriteEngine On\nRewriteRule ^(.*)$ https:\u002F\u002Fnew-domain.com\u002F$1 [R=301,L]\n\u003C\u002Fcode>\u003C\u002Fpre>\n\u003Cp>Each page of the old domain then points to the same page of the new one.\u003C\u002Fp>\n\u003Ch2>4. Check your redirects\u003C\u002Fh2>\n\u003Cp>Open the old address in a private browsing window, you should land on the new one. To see the exact code returned, use \u003Ccode>curl\u003C\u002Fcode> from a terminal, it is also available on Windows 10 and 11.\u003C\u002Fp>\n\u003Cpre>\u003Ccode class=\"language-bash\">curl -I https:\u002F\u002Fwww.example.com\u002Fold-page.html\n\u003C\u002Fcode>\u003C\u002Fpre>\n\u003Cp>The expected answer starts with \u003Ccode>HTTP\u002F1.1 301 Moved Permanently\u003C\u002Fcode> and gives the new address on the \u003Ccode>Location\u003C\u002Fcode> line.\u003C\u002Fp>\n\u003Ch2>Troubleshooting\u003C\u002Fh2>\n\u003Ch3>❌ The browser shows &quot;Too many redirects&quot;\u003C\u002Fh3>\n\u003Cp>Two settings keep sending the visitor back and forth, often the Plesk \u003Cstrong>Domaine préféré\u003C\u002Fstrong> and the address set in your CMS.\u003C\u002Fp>\n\u003Cul>\n\u003Cli>On WordPress, open \u003Cstrong>Settings\u003C\u002Fstrong>, then \u003Cstrong>General\u003C\u002Fstrong>, and enter in \u003Cstrong>WordPress Address\u003C\u002Fstrong> and \u003Cstrong>Site Address\u003C\u002Fstrong> the same form as the \u003Cstrong>Domaine préféré\u003C\u002Fstrong>\u003C\u002Fli>\n\u003Cli>Remove from \u003Ccode>.htaccess\u003C\u002Fcode> any rule that adds or removes \u003Ccode>www\u003C\u002Fcode>, Plesk already does it\u003C\u002Fli>\n\u003Cli>Clear the browser cache or test in private browsing\u003C\u002Fli>\n\u003C\u002Ful>\n\u003Ch3>❌ The redirect does not happen\u003C\u002Fh3>\n\u003Cp>The file is not read, or the browser shows an old answer.\u003C\u002Fp>\n\u003Cul>\n\u003Cli>Check that \u003Ccode>.htaccess\u003C\u002Fcode> sits in the document root of the website, shown in \u003Cstrong>Hébergement\u003C\u002Fstrong> on the \u003Cstrong>Racine du document\u003C\u002Fstrong> (\u003Cem>Document root\u003C\u002Fem>) line\u003C\u002Fli>\n\u003Cli>Check the spelling of the path, which starts with \u003Ccode>\u002F\u003C\u002Fcode> and is case sensitive\u003C\u002Fli>\n\u003Cli>Test in private browsing, browsers remember 301 redirects they already followed for a long time\u003C\u002Fli>\n\u003C\u002Ful>\n\u003Ch3>❌ The website shows a 500 error after the change\u003C\u002Fh3>\n\u003Cp>A line of \u003Ccode>.htaccess\u003C\u002Fcode> contains a syntax error.\u003C\u002Fp>\n\u003Cul>\n\u003Cli>Remove the last line added and save to confirm the website comes back\u003C\u002Fli>\n\u003Cli>Read the exact message in the logs, with our guide \u003Ca href=\"https:\u002F\u002Fwinheberg.com\u002Fen\u002Fdocs\u002Fhebergement-web\u002Fwebsite-error-logs-plesk\">How to Read the Error Logs of Your Website on Plesk\u003C\u002Fa>\u003C\u002Fli>\n\u003C\u002Ful>\n\u003Ch2>Best practices\u003C\u002Fh2>\n\u003Cul>\n\u003Cli>Point each old page directly to its final destination, without chaining several redirects\u003C\u002Fli>\n\u003Cli>Keep your redirects for at least a year, the time for search engines and outside links to update\u003C\u002Fli>\n\u003Cli>Redirect an old page to the page that really replaces it, not to the home page\u003C\u002Fli>\n\u003Cli>Write your redirects down in a document, to know why each line exists\u003C\u002Fli>\n\u003Cli>Back up before a large set of redirects, with our guide \u003Ca href=\"https:\u002F\u002Fwinheberg.com\u002Fen\u002Fdocs\u002Fhebergement-web\u002Fbackup-restore-website-plesk\">How to Back Up and Restore Your Website on Plesk\u003C\u002Fa>\u003C\u002Fli>\n\u003C\u002Ful>\n\u003Ch2>Need help?\u003C\u002Fh2>\n\u003Cp>If a redirect does not work or if your website loops, open a ticket with our support from your \u003Ca href=\"https:\u002F\u002Fbilling.winheberg.com\">client area\u003C\u002Fa>, \u003Cstrong>Technical\u003C\u002Fstrong> department, filling in the \u003Cstrong>Related Product\u003C\u002Fstrong> field with the web hosting concerned. Give the old address and the expected one.\u003C\u002Fp>\n\u003Cp>One address, old pages that lead to the right place, your search ranking says thank you 🔀\u003C\u002Fp>\n",1794526351243]