Warning: session_start(): open(/var/cpanel/php/sessions/alt-php74/sess_9niched371ma58gu4ha3vt9bt6, O_RDWR) failed: No such file or directory (2) in /home/xsofthost/public_html/help/wp-content/plugins/accelerated-mobile-pages/includes/redirect.php on line 358

Warning: session_start(): Failed to read session data: files (path: /var/cpanel/php/sessions/alt-php74) in /home/xsofthost/public_html/help/wp-content/plugins/accelerated-mobile-pages/includes/redirect.php on line 358
How to Configure and remove a Domain Redirect in cPanel - XsoftHost

How to Configure and remove a Domain Redirect in cPanel

cPanel Domain Redirect

A Domain redirect allows you to make one domain redirect to another domain, either for a website or a specific web page. For example, create a redirect so that www.example.com automatically redirects users to www.example.net.

How to Setup Domain Redirect in cPanel

  1. Login to your cPanel Control Panel.
  2. In cPanel dashboard locate Domains Tab then click Redirect icon.


    cPanel Redirect

  3. From Add Redirect Page fill the following
    1. Type: you have two option of redirect types
      1. Permanent 301 is a redirect that will update the visitor’s bookmarks and search engines will index the new site url.
      2. Temporary 302 is a redirect that will redirect the visitor or search engine but will not update the bookmark, and search engines will remain indexing the original page.
    2. https?://(www.)? : from the drop down list you have to select the domain you want to redirect , in-case you want to redirect only single page you can add the page name on the next text editor with / mark.
    3. Redirects to: type the full URL of the page to which your site will be redirecting.
    4. www. redirection:here you have an option to define the redirection behavior:
      1. Only redirect with www. : with this option only redirects visitors that type www. as part of the URL e.g www.yourdomain.com only will redirect to the new url.
      2. Redirect with or without www. :redirects all visitors from your webiste regardless of if they use www. or not.
      3. Do Not Redirect www. : with this option will not redirect visitors that use www. as part of the URL.
      4. Wild Card Redirect :This will add the the file/folder name after the url when it redirect. For example, mydomain.com/hello.html would redirect to mydomain1.com/hello.html.
  4. Click Add Button , now your visitors will redirect to the new URL depends on the options you select above.

Do NOT redirect from domain.com to www.domain.com or from domain.com to domain.com/index.something, this will cause an infinite loop. If you want to do so , you must use mod_rewrite by adding .htaccess code.

cPanel Add Redirect

How to Remove Domain Redirect in cPanel

To do remove the already configured Domain Redirect in cPanel :

  1. Login to your cPanel Control Panel.
  2. In cPanel dashboard locate Domains Tab then click Redirect icon.
  3. From the Current Redirects List , Select the redirection you want to remove then under Actions, and click Delete , confirm the message and click Remove Redirect button.
    cPanel Current Redirect
Share on facebook
Share on twitter
Share on linkedin
Share on telegram
Share on whatsapp

Related Posts