HOSKIA INDIA Posted May 15, 2019 Share Posted May 15, 2019 How to Redirect non-www to www URLs ex - https://domain.com to https://www.domain.com auto 0 Quote Link to comment Share on other sites More sharing options...
WHMCS ChrisD Posted May 15, 2019 Share Posted May 15, 2019 There is quite a few help articles online for these topics https://tribulant.com/docs/hosting-domains/hosting/9867/redirecting-to-www-or-non-www/ is one that may help. 0 Quote Link to comment Share on other sites More sharing options...
adamgills Posted September 28, 2022 Share Posted September 28, 2022 you can do this through hosting panel or direct talk to hosting support team. They do this like http://www.camsnps.com/ to https://www.camsnps.com/ 0 Quote Link to comment Share on other sites More sharing options...
BrijeshM Posted January 30, 2023 Share Posted January 30, 2023 there is a simple code for redirection that you can add in .htaccess file in cPanel 0 Quote Link to comment Share on other sites More sharing options...
Louie53682 Posted February 21, 2023 Share Posted February 21, 2023 Keep the Type as the default, Permanent(301). Select your domain name from the drop down menu on the next line. In the redirects to text box, type in the full URL of your domain, including www (e.g. http://www.yourdomain.com). 0 Quote Link to comment Share on other sites More sharing options...
Ethan Klein Posted March 2, 2023 Share Posted March 2, 2023 Redirecting non-www to www URLs is a common practice used to ensure that all traffic to your website is directed to a single domain. Here are the steps to redirect non-www to www URLs: Determine your web server type: The steps to redirect non-www to www URLs will depend on the type of web server you are using. The two most common types are Apache and NGINX. Create a redirect rule: Once you know your web server type, you can create a redirect rule that will redirect all non-www traffic to the www version of your domain. Here are the redirect rules for both Apache and NGINX: Apache: Add the following code to your .htaccess file: RewriteEngine On RewriteCond %{HTTP_HOST} !^www. [NC] RewriteRule ^(.*)$ http://www.%{HTTP_HOST}/$1 [L,R=301] NGINX: Add the following code to your server block: server { listen 80; server_name example.com; return 301 $scheme://www.example.com$request_uri; } Test the redirect: After creating the redirect rule, test it to make sure that it is working properly. You can do this by typing in the non-www version of your domain into a browser and verifying that it redirects to the www version. Once you have completed these steps, all non-www traffic to your website should be automatically redirected to the www version of your domain. This can help ensure that all of your website traffic is directed to a single domain and can help with SEO and website analytics tracking. https://crecentech.com/ 0 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.