redirect to subdirectory of website

Discussion in 'General' started by JESUSSAVES, Oct 18, 2011.

  1. JESUSSAVES

    JESUSSAVES New Member

    Hi,

    I'm doing a "Subdomain for website" (page 98 in manual). I've uploaded a "sales" directory to my document root (/var/www/mydomain.com/web) and entered this information and clicked save.

    Host: sales
    Domain: mydomain.com
    Redirect Type: L
    Redirect Path: /sales/

    I enter into my browser sales.mydomain.com, however I'm getting a MozFF error "Sorry, Page not found".

    What mistake could I have made or how can this be accomplished? I'd like to give my users the opportunity to use this function.

    Thank you, thank you.:D
     
  2. till

    till Super Moderator Staff Member ISPConfig Developer

    Which ISPConfig version do you use?

    Please be aware that you can only have html pages in the sales directory and no php scripts. The recommended option for subdomains that have their own directory is to create a website and not use the subdomain function.
     
    Last edited: Oct 18, 2011
  3. JESUSSAVES

    JESUSSAVES New Member

    have installed ISPConfig 3.0.3.3

    The reason I like this feature is so that (i'm using the domain module) I don't have to create a new site for them, and I want to be able to tell them how to use the feature.
     
  4. till

    till Super Moderator Staff Member ISPConfig Developer

    Have you created a dns a-record for sales.mydomain.com. in the zone mydomain.com that points to the IP address of the website where you added that subdomain?
     
  5. JESUSSAVES

    JESUSSAVES New Member

    Oh. :eek:

    It works now! Thank you!!!
     

Share This Page