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!

SOLVED Error redirects

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

  1. Trax2k

    Trax2k Member

    Joined:
    Sep 16, 2015
    Messages:
    14
    Likes Received:
    2
    Trophy Points:
    78
    Location:
    UK
    cPanel Access Level:
    Root Administrator
    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:
    720
    Likes Received:
    123
    Trophy Points:
    168
    Location:
    New Jersey
    cPanel Access Level:
    DataCenter Provider
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
    Trax2k likes this.
  3. Trax2k

    Trax2k Member

    Joined:
    Sep 16, 2015
    Messages:
    14
    Likes Received:
    2
    Trophy Points:
    78
    Location:
    UK
    cPanel Access Level:
    Root Administrator
    @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:
    720
    Likes Received:
    123
    Trophy Points:
    168
    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.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  5. Trax2k

    Trax2k Member

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

    cPanelMichael Technical Support Community Manager
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    44,803
    Likes Received:
    1,898
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Twitter:
    Hello,

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

    Thank you.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
Loading...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice