Go Back   HostGator Peer Support Forums > Public Forums > Pre-Sales Questions

Notices

Reply
 
Thread Tools
  #1  
Old 10-31-2008, 04:51 AM
Nasrun Nasrun is offline
Hatchling Croc
 
Join Date: Oct 2008
Posts: 11
Default [How to] Redirect: domain.com to www.domain.com

Hello,

I am new user.

I am tranfer my old domain to hostgator babu croc plan.

The problen is i can't Redirect: domain.com to www.domain.com.

When i am enter the domain with www it doesnt appear anything.

Please help..
Reply With Quote
  #2  
Old 10-31-2008, 05:10 AM
Nasrun Nasrun is offline
Hatchling Croc
 
Join Date: Oct 2008
Posts: 11
Default Re: [How to] Redirect: domain.com to www.domain.com

Anyone can help?

I can't acces the other thread.. waitting for permission..

Please..
Reply With Quote
  #3  
Old 10-31-2008, 07:22 AM
striddy striddy is offline
Emperor Croc
 
Join Date: Mar 2008
Location: /home/australia/earth
Posts: 2,619
Default Re: [How to] Redirect: domain.com to www.domain.com

Quote:
Originally Posted by Nasrun View Post
I am tranfer my old domain to hostgator babu croc plan.

The problen is i can't Redirect: domain.com to www.domain.com.

When i am enter the domain with www it doesnt appear anything.
Easiest way to setup redirects is in cpanel.
__________________
- David

Folding@Home Stats :
Reply With Quote
  #4  
Old 11-01-2008, 01:44 AM
Nasrun Nasrun is offline
Hatchling Croc
 
Join Date: Oct 2008
Posts: 11
Default Re: [How to] Redirect: domain.com to www.domain.com

How to setup the redirect on cpanel?

I am search for it on google.. But they always use 301 redirect on htacess
Reply With Quote
  #5  
Old 11-01-2008, 02:05 AM
striddy striddy is offline
Emperor Croc
 
Join Date: Mar 2008
Location: /home/australia/earth
Posts: 2,619
Default Re: [How to] Redirect: domain.com to www.domain.com

Quote:
Originally Posted by Nasrun View Post
How to setup the redirect on cpanel?

I am search for it on google.. But they always use 301 redirect on htacess
Login to Cpanel > Redirects > setup 301 redirect, fill in the blanks. That's all.

Following this procedure will create / edit your .htaccess file correctly without having to edit it manually.
__________________
- David

Folding@Home Stats :
Reply With Quote
  #6  
Old 11-01-2008, 02:53 AM
GatorZach
HostGator Guest
 
Posts: n/a
Default Re: [How to] Redirect: domain.com to www.domain.com

Here's a neat little method I found online:


Quote:
# Require WWW
# Will automatically redirect requests to non-www to www
# This will exempt robots.txt for search engines
<IfModule mod_rewrite.c>
Options +FollowSymLinks
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_URI} !^/robots\.txt$
RewriteCond %{REQUEST_URI} !^/sitemap\.(xml|xml\.gz)$
RewriteCond %{HTTP_HOST} ^([^.]+)\.([^.]+)$ [NC]
RewriteRule ^(.*)$ http://www.%1.%2/$1 [R=301,L]
</IfModule>
Reply With Quote
  #7  
Old 11-01-2008, 04:52 AM
Sergio's Avatar
Sergio Sergio is offline
Royal Croc
 
Join Date: Oct 2005
Location: Guatemala
Posts: 487
Default Re: [How to] Redirect: domain.com to www.domain.com

Quote:
Originally Posted by Nasrun View Post
Hello,

I am new user.

I am tranfer my old domain to hostgator babu croc plan.

The problen is i can't Redirect: domain.com to www.domain.com.

When i am enter the domain with www it doesnt appear anything.

Please help..
I think, you don't need to redirect anything, just wait that the propagation takes place for your domain. Propagations takes from 24 to 72 hours. While the propagation is running it is possible that you can not see www.domain.com but domain.com, just wait.
__________________
Sergio
www.EspacioyDominio.com
espacio con dominio incluido.
www.HOSTnDOMAINS.com
domains, appraisals, SSL Certificates and more...
Reply With Quote
  #8  
Old 11-01-2008, 05:58 AM
Nasrun Nasrun is offline
Hatchling Croc
 
Join Date: Oct 2008
Posts: 11
Default Re: [How to] Redirect: domain.com to www.domain.com

Quote:
Originally Posted by Sergio View Post
I think, you don't need to redirect anything, just wait that the propagation takes place for your domain. Propagations takes from 24 to 72 hours. While the propagation is running it is possible that you can not see www.domain.com but domain.com, just wait.
I cant see the both of it..

I buy domain on go daddy, but not transfer it to host gator..

Maybe i try the script form host gator..
Reply With Quote
  #9  
Old 11-01-2008, 06:09 AM
Nasrun Nasrun is offline
Hatchling Croc
 
Join Date: Oct 2008
Posts: 11
Default Re: [How to] Redirect: domain.com to www.domain.com

Quote:
Originally Posted by GatorZach View Post
Here's a neat little method I found online:
Hello,thanks.. It work.

But i have one question..

How could i make it for subdomain example :

ezygrafik.com/blog.

Thanks for your help.

Hope i did not make you all angry..
Reply With Quote
  #10  
Old 11-01-2008, 06:15 AM
striddy striddy is offline
Emperor Croc
 
Join Date: Mar 2008
Location: /home/australia/earth
Posts: 2,619
Default Re: [How to] Redirect: domain.com to www.domain.com

Quote:
Originally Posted by Nasrun View Post
Hello,thanks.. It work.
It worked all along. Did you see my reply to you in the other thread?

Quote:
Originally Posted by Nasrun View Post
How could i make it for subdomain example :

ezygrafik.com/blog.
To setup a subdomain like blog.yourdomain.com go to Cpanel > Subdomain > and fill in the blanks.

What you wrote "ezygrafik.com/blog" is a subdirectory, not a subdomain.
__________________
- David

Folding@Home Stats :
Reply With Quote
  #11  
Old 11-01-2008, 06:21 AM
Nasrun Nasrun is offline
Hatchling Croc
 
Join Date: Oct 2008
Posts: 11
Default Re: [How to] Redirect: domain.com to www.domain.com

Quote:
Originally Posted by striddy View Post
It worked all along. Did you see my reply to you in the other thread?



To setup a subdomain like blog.yourdomain.com go to Cpanel > Subdomain > and fill in the blanks.

What you wrote "ezygrafik.com/blog" is a subdirectory, not a subdomain.
Thanks Striddy, you are so helpful..I see your reply on the other thread.

I may change the blog to the sub domain. I should delete the sub directories first rite?

Then i just put the code on the subdomain .htacess to redirect non www to www rite?
Reply With Quote
  #12  
Old 11-01-2008, 06:26 AM
striddy striddy is offline
Emperor Croc
 
Join Date: Mar 2008
Location: /home/australia/earth
Posts: 2,619
Default Re: [How to] Redirect: domain.com to www.domain.com

Quote:
Originally Posted by Nasrun View Post
I should delete the sub directories first rite?
Yes, then Cpanel > Subdomain > will create the directory for you.
__________________
- David

Folding@Home Stats :
Reply With Quote
  #13  
Old 11-01-2008, 06:28 AM
Nasrun Nasrun is offline
Hatchling Croc
 
Join Date: Oct 2008
Posts: 11
Default Re: [How to] Redirect: domain.com to www.domain.com

Quote:
Originally Posted by striddy View Post
Yes, then Cpanel > Subdomain > will create the directory for you.
You are so helpful on the forum..
Reply With Quote
  #14  
Old 11-01-2008, 09:29 AM
Nasrun Nasrun is offline
Hatchling Croc
 
Join Date: Oct 2008
Posts: 11
Default Re: [How to] Redirect: domain.com to www.domain.com

I have done the step..

For the wordpress blog i don't need to create .htaccess file to redirect
to "www".

I am just add it on the wordpress dashbord > setting > general setting

Thanks guys.
Reply With Quote
  #15  
Old 11-01-2008, 12:58 PM
Sergio's Avatar
Sergio Sergio is offline
Royal Croc
 
Join Date: Oct 2005
Location: Guatemala
Posts: 487
Default Re: [How to] Redirect: domain.com to www.domain.com

Quote:
Originally Posted by Nasrun View Post
I cant see the both of it..

I buy domain on go daddy, but not transfer it to host gator..

Maybe i try the script form host gator..
If you bougth your domain on godaddy, did you change the DNS on the domain so the domain points to HostGator's server?
__________________
Sergio
www.EspacioyDominio.com
espacio con dominio incluido.
www.HOSTnDOMAINS.com
domains, appraisals, SSL Certificates and more...
Reply With Quote
  #16  
Old 03-02-2009, 11:50 AM
haxor10 haxor10 is offline
Hatchling Croc
 
Join Date: Oct 2008
Posts: 1
Default Re: [How to] Redirect: domain.com to www.domain.com

this post was helpful 2 me 2 in some ways, keep up
Reply With Quote
Reply

Bookmarks

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump

All times are GMT -6. The time now is 03:23 PM.

 
Forum SEO by Zoints