The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Redirect doesn't work

Discussion in 'General Discussion' started by technicolor, Mar 18, 2004.

  1. technicolor

    technicolor Member

    Joined:
    Mar 11, 2004
    Messages:
    18
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    italy
    I select a domain redirect http://domain.com to http://domain2.com permanent but when i click on "add" cpanel doesn't set redirect and i click on "go back" and under "current redirects" there's nothing written :( why?
     
  2. bamasbest

    bamasbest Well-Known Member

    Joined:
    Jan 10, 2004
    Messages:
    531
    Likes Received:
    0
    Trophy Points:
    16
    What you are actually trying to do is to "Park" domain1 on top of domain2.

    If you have access to WHM you should be able to do this by enabling your account to park domains. If not, check with your host and ask if they will allow you to do this or if they will do this for you.
     
  3. BrightAdmin

    BrightAdmin Well-Known Member

    Joined:
    Feb 29, 2004
    Messages:
    204
    Likes Received:
    0
    Trophy Points:
    16
    Hi,

    If you are not able to set the redirection through your cpanel you can do it by directly editing your .htaccess file. Enter the following entry in your .htaccess file which is available under your public_html directory. If it is not present then create a new one with the command "touch .htaccess" and enter the entry as

    Redirect 301 http://domain1.com http://domain2.com

    Save the file and try whether your redirection is working or not.
    May be this helps you.

    Regards,

    Bright
    :)
     
  4. anees

    anees Member

    Joined:
    Apr 10, 2004
    Messages:
    8
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    USA
    I have been trying to solve this but I can't. I have access to WHM and every time I try to park domain on top of my main domain it adds an entry to httpd.conf and than my main server can't be reached if I type my main domain or parked one.

    I tried this .htaccess too but no luck.

    Can anyone explains why I am having this problem plz?

    For example I have domain name abc.com and I would like point xyz.com and xyz2.com to abc.com

    So after all this setup if I type abc.com or xyz.com or xyz2.com they all would open abc.com

    I would really appriciate it if someone could help on this.
     
Loading...

Share This Page