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.

I can't configure a working redirect for a website

Discussion in 'General Discussion' started by EdKemper, Apr 8, 2016.

  1. EdKemper

    EdKemper Registered

    Joined:
    Apr 8, 2016
    Messages:
    2
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    italy
    cPanel Access Level:
    Website Owner
    Well, I'm having this problem in setting a redirect for my web page to another.
    I've my main domain where I can access from my cpanel account.
    We can say myhomepage.com then I have another page on my server xxx.xxx.xxx.xxx.
    I need to create a redirect to shop.myhomepage.com that is hosted at xxx.xxx.xxx.xxx.
    The point is that I need to go to shop.myhompage.com, and the browser have to open me the xxx.xxx.xxx.xxx and it works. What I can't configure is that I want to see shop.myhomepage.com and not xxx.xxx.xxx.xxx in the address bar.

    How can I mask it? I've already made the index.html as shown in some guide but nothing to do.

    any advice?

    thank you
     
  2. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,723
    Likes Received:
    660
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    Hello :)

    Have you considered using a domain alias instead of a redirect? Aliases are documented at:

    Aliases - Documentation - cPanel Documentation

    Thank you.
     
  3. EdKemper

    EdKemper Registered

    Joined:
    Apr 8, 2016
    Messages:
    2
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    italy
    cPanel Access Level:
    Website Owner
    well I've done it, it redirect with the alias but it's not masked, when I open the main domain shop.myhomepage.com it redirect me to xxx.xxx.xxx.xxx but I keep having the xxx.xxx.xxx.xxx in the address bar, while I need to have shop.myhomepage.com.
    I can't find the option to mask it.
     
  4. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,723
    Likes Received:
    660
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    Ensure you have not configured a redirect for the alias, and that no redirects are configured in the configuration of the script you are using. An alias on it's own will not redirect the domain name and remains in the address bar.

    Thank you.
     
Loading...

Share This Page