Co-Domain redirection problem

Discussion in 'Developers' Forum' started by Croydon, Nov 12, 2009.

  1. Croydon

    Croydon ISPConfig Developer ISPConfig Developer

  2. falko

    falko Super Moderator Howtoforge Staff

    The redirect is only for directories, not for single files.
     
  3. Croydon

    Croydon ISPConfig Developer ISPConfig Developer

    Yes, that is what i experienced ;)
    But wouldn't it be better to be able using redirections to a specific file, too?
    I see no other way of doing this - only creating apache directives for the account with rewrite rules in it.
     
  4. till

    till Super Moderator Staff Member ISPConfig Developer

    Normally you do this by a.htaccess file. All common cms systems that need these functions already come with a .htaccess file for that.
     
  5. Croydon

    Croydon ISPConfig Developer ISPConfig Developer

    Sure. I do not doubt that :)

    Let's assume we have a Domain www.mycomain.com that belongs to customer X.
    Customer X has no experience with .htaccess or mod rewrite.

    He wants to set up subdomains that redirect like this:
    sub1.mydomain.com -> www.mydomain.com/main.php?action=sub1
    sub2.mydomain.com -> www.mydomain.com/bla.php
    sub3.mydomain.com -> www.mydomain.com/thatsme.html

    I know that you can do all this via httpd directives or .htaccess but that's sort of a problem for customers that can only use the ispc interface, isn't it?
    I could change the ispc code of that installation myself, but I didn't yet understand if there's a reason that you can only redirect co domains to directories in ispc.
     

Share This Page