See Our Webmaster Tools for Windows and Mac

                                  

How to redirect a url without www ?

Started by kalmakuran, March 03, 2017, 04:19:33 AM

kalmakuran

Hello friends,

I want to know that How to redirect a URL without WWW ? it is true or Not..!

Dennis

Click on the Redirects icon under the Domains area of your cPanel home page. 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, without the www (e.g. http://yourdomain.com). Select the radio button next to Only redirect with www.

Koupon Era

Use this code in .htaccess file presented on server(website's root folder)

<IfModule mod_rewrite.c>
RewriteEngine off
</IfModule>
Options +FollowSymlinks
RewriteEngine on
RewriteCond %{HTTP_HOST} !^www\.
RewriteRule ^(.*)$ http://www.%{HTTP_HOST}/$1 [R=301,L]

Ranjujain

In the .htaccess file you need to include the following code to redirect without www to www.

<IfModule mod_rewrite.c>
RewriteEngine On
RewriteCond %{HTTPS} off [OR]
RewriteCond %{HTTP_HOST} ^www\.
RewriteRule ^ https://example.com%{REQUEST_URI} [L,R=301]
</IfModule>

Neha

Log in to your Account Manager.
Next to Domains, click Manage.
Select the domain names you want to forward. ...
Click Forward, and then select Forwarding Domains.
Click Add Forwarding.
Enter the URL you want to forward your domain name to.
Select your Redirect type.
Select your Forward settings
Click Add, and then click Save.

Jeffscott

Kindly be specific and detailed on where to include the codes within the .htaccess file and not just by copy paste from the web and post it here in the forum.

RH-Calvin

You can use 301 redirect as an alternative to www. 301 redirect is the most efficient and Search Engine Friendly method for webpage redirection. It's not that hard to implement and it should preserve your search engine rankings for that particular page. If you have to change file names or move pages around, it's the safest option. The code "301" is interpreted as "moved permanently".
Cheap VPS | $1 VPS Hosting
Cheap Dedicated Servers | Free Setup with IPMI

jasonhalle

You can redirect using .htaccess file or if you are using WordPress you can do it using the plugin (301 redirects).





recommended related video to How to redirect a url without www
Note: Check our video related to keywords in "How to redirect a url without www" on YouTube.