Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

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.

SOLVED Error redirects

Discussion in 'Bind / DNS / Nameserver Issues' started by Trax2k, Jul 7, 2017.

  1. Trax2k

    Trax2k Member

    Joined:
    Sep 16, 2015
    Messages:
    14
    Likes Received:
    2
    Trophy Points:
    76
    Location:
    UK
    cPanel Access Level:
    Reseller Owner
    Is it possible to redirect using domain records?

    As i've stated before we allow clients to create their own cpanel accounts using a sub-domain of our parent domain so they get their own set of records.

    What we want to do if possible is alter the Zone template so that if there is a missing file/web page rather than see the "404 Not Found" the clients sub-domain would be redirected to a destination of our choice?

    This record will mostly likely be a CNAME record.

    Example

    Clients website is located at clsub.mydom.com, someone types in clsub.mydom.com/lostfile.html then they would be redirected

    Thanks!
     
  2. Jcats

    Jcats Well-Known Member

    Joined:
    May 25, 2011
    Messages:
    599
    Likes Received:
    92
    Trophy Points:
    153
    Location:
    New Jersey
    cPanel Access Level:
    DataCenter Provider
    Trax2k likes this.
  3. Trax2k

    Trax2k Member

    Joined:
    Sep 16, 2015
    Messages:
    14
    Likes Received:
    2
    Trophy Points:
    76
    Location:
    UK
    cPanel Access Level:
    Reseller Owner
    @Jcats thanks for the reply.

    This how i do it now with .htaccess, I was just looking for another way has clients can alter/delete that file where as I can stop access to their records.

    Anyhow thanks again ☺
     
  4. Jcats

    Jcats Well-Known Member

    Joined:
    May 25, 2011
    Messages:
    599
    Likes Received:
    92
    Trophy Points:
    153
    Location:
    New Jersey
    cPanel Access Level:
    DataCenter Provider
    Just place it in the home directory, before public_html, very small chance it will get touched.
     
  5. Trax2k

    Trax2k Member

    Joined:
    Sep 16, 2015
    Messages:
    14
    Likes Received:
    2
    Trophy Points:
    76
    Location:
    UK
    cPanel Access Level:
    Reseller Owner
    Alright, thanks for your advice.
     
  6. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    38,658
    Likes Received:
    1,425
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Hello,

    I'm marking this thread as solved. Let us know if you have any additional questions.

    Thank you.
     
Loading...

Share This Page