Webmaster Forums - Website and SEO Help

Search Engines and Marketing => Website Crawling and Indexing => Topic started by: kalmakuran on March 03, 2017, 04:19:33 AM

Title: How to redirect a url without www ?
Post by: kalmakuran on March 03, 2017, 04:19:33 AM
Hello friends,

I want to know that How to redirect a URL without WWW ? it is true or Not..!
Title: Re: How to redirect a url without www ?
Post by: Dennis on March 22, 2017, 04:59:34 AM
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.
Title: Re: How to redirect a url without www ?
Post by: Koupon Era on March 22, 2017, 06:57:15 AM
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]
Title: Re: How to redirect a url without www ?
Post by: Ranjujain on April 13, 2017, 12:03:43 AM
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>
Title: Re: How to redirect a url without www ?
Post by: Neha on April 17, 2017, 07:11:49 AM
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.
Title: Re: How to redirect a url without www ?
Post by: Jeffscott on April 18, 2017, 02:32:16 AM
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.
Title: Re: How to redirect a url without www ?
Post by: RH-Calvin on April 25, 2017, 02:11:04 AM
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".
Title: Re: How to redirect a url without www ?
Post by: jasonhalle on May 01, 2017, 07:51:07 AM
You can redirect using .htaccess file or if you are using WordPress you can do it using the plugin (301 redirects).