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.

Sub Redirection issue

Discussion in 'General Discussion' started by icanectc, Apr 30, 2003.

  1. icanectc

    icanectc Well-Known Member

    Mar 10, 2003
    Likes Received:
    Trophy Points:
    Greetings I am trying to get a redirection of a subdomain to work.

    I have a subdomain

    I have a support cgi from perldesk inside

    now their are no main index.html files in helpdesk subdomain I just want it to immediately goto the pdesk.cgi script

    but when I setup the redirectory and type in it does redirect to the pdesk.cgi script

    but it REDIRECTS EVERYTHING if I type in another url like its KB.cgi file it will redirect me back to pdesk.cgi users can't even login because the url will reroute them back to pdesk.cgi main file.

    my question is this a bug or by design??
  2. Faldran

    Faldran Well-Known Member

    May 28, 2002
    Likes Received:
    Trophy Points:
    Try this... Get rid of the redirect.

    Add this line to the .htaccess file in your helpdesk directory.

    DirectoryIndex pdesk.cgi

    And finally, don't put the help desk, in the cgi-bin folder, but put it in your main folder ( /public_html/helpdesk/ ).

    I have done this for a few clients, and it works great.

    Good luck

Share This Page