How to redirect a url without www ?

  • 7 Replies
  • 132 Views
*

kalmakuran

  • Jr. Member
  • **
  • 84
  • +0/-0
    • View Profile
    • Dua for Marriage in Quran
How to redirect a url without www ?
« 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..!

*

Dennis

  • Newbie
  • *
  • 45
  • +0/-0
    • View Profile
Re: How to redirect a url without www ?
« Reply #1 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.

*

Koupon Era

  • Newbie
  • *
  • 46
  • +0/-0
    • View Profile
    • Shopping Discount Coupons
Re: How to redirect a url without www ?
« Reply #2 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]

*

Ranjujain

  • Website Design Company
  • Newbie
  • *
  • 21
  • +0/-0
    • View Profile
    • Website Design Company, Bangalore, India
Re: How to redirect a url without www ?
« Reply #3 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>

*

Neha

  • Newbie
  • *
  • 22
  • +0/-0
    • View Profile
Re: How to redirect a url without www ?
« Reply #4 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.

*

Jeffscott

  • Wanderer
  • Full Member
  • ***
  • 165
  • +0/-0
  • Explorer
    • View Profile
    • Football Sports News
Re: How to redirect a url without www ?
« Reply #5 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.
Finest Pool Betting Games

*

RH-Calvin

  • Sr. Member
  • ****
  • 440
  • +0/-0
    • View Profile
    • Reprise Hosting
Re: How to redirect a url without www ?
« Reply #6 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".
Cheap VPS | $1 VPS Hosting
Cheap Dedicated Hosting | Free Setup with IPMI

*

jasonhalle

  • Newbie
  • *
  • 26
  • +0/-0
  • Hello... :)
    • View Profile
    • iPhone App Development Company
Re: How to redirect a url without www ?
« Reply #7 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).

 




See Our Webmaster Tools for Windows and Mac

A1 Sitemap Generator
      
A1 Website Analyzer
      
A1 Keyword Research
      
A1 Website Download
      
A1 Website Search Engine
      
A1 Website Scraper