Closed Thread
Results 1 to 2 of 2

Thread: How to redirect yourdomain.co.cc to www.yourdomain.co.cc?

  1. #1
    santoshsynaptik25 is offline x10Hosting Member santoshsynaptik25 is an unknown quantity at this point
    Join Date
    May 2011
    Posts
    3

    How to redirect yourdomain.co.cc to www.yourdomain.co.cc?

    And prevent http://yourdomain.co.cc from viewing. Like Google does this, if you type http://google.com then it will redirect you to http://www.google.com/ and the same is with Facebook and so on.

    I think that this prevents bandwidth too.. isn't this??

  2. #2
    descalzo's Avatar
    descalzo is offline Grim Squeaker descalzo has a brilliant futuredescalzo has a brilliant futuredescalzo has a brilliant future
    Join Date
    Jul 2009
    Location
    Ankh-Morpork
    Posts
    7,635

    Re: How to redirect yourdomain.co.cc to www.yourdomain.co.cc?

    Actually, it uses more bandwidth/time to use the redirect.

    If you insist, you can use .htaccess to use mod_rewrite to issue a 301 Permanently Moved :


    Code:
    RewriteEngine on
    RewriteBase /
    RewriteCond %{HTTP_HOST} ^yourdomain\.co\.cc$ [NC]
    RewriteRule ^(.*)$ http://www.yourdomain.co.cc/$1 [R=301,L]
    Nothing is always absolutely so.

Closed Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
x10hosting free hosting for the masses
dedicated servers