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.

PHP with domain redirect

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

  1. bwor

    bwor Member

    Joined:
    Jun 15, 2008
    Messages:
    20
    Likes Received:
    0
    Trophy Points:
    1
    Hi

    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

    Joined:
    Apr 11, 2011
    Messages:
    30,723
    Likes Received:
    660
    Trophy Points:
    113
    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.
     
Loading...

Share This Page