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!

PHP with domain redirect

Discussion in 'General Discussion' started by bwor, May 29, 2013.

  1. bwor

    bwor Member

    Jun 15, 2008
    Likes Received:
    Trophy Points:

    I'm looking to design & develop a form in PHP can automatically generate a short link using own domain for that to end user.
    So user can enter a link he can get automatically short link to redirect it.

    How I can use cpanel redirect function to do that with PHP.
  2. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Apr 11, 2011
    Likes Received:
    Trophy Points:
    cPanel Access Level:
    Root Administrator
    Hello :)

    I'm not sure the "Redirect" function available with cPanel will configure the redirects how you intend. You may want to try adding the redirects manually first, to ensure they add how you prefer them to. If they do, the following documents may be useful to you if you are attempting to develop a PHP script using the cPanel API:

    cPanel & WHM's API
    cPanel PHP Class

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

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