Help Editing .htaccess (Complex)

Discussion in 'Apache' started by mikedamiz, Sep 10, 2006.

  1. #1
    Hey i'm not sure if this is possible or not. Basically i have a site installed and my domain points to that folder. However i own two domains on the same server but i want each domain to point to a different index.php.

    So i have... Mysite.com/index.php (domain one points to that)
    Then have
    Mysite2.com/index2.php (2nd domain points to that)

    The reason why i need this is im creating multi-intrest site (Video Site, Game Site, Picture site)...

    What i will do is have one central domain point to the whole site. I also want to have each sub-parts of the site have their own domain, so i would have the domain point to the start of that sub site. (Everything is installed on the same server and same folder, i just need to make it so if ur coming from X domain it loads whatever.php

    Is this even possible?
     
    mikedamiz, Sep 10, 2006 IP
  2. Sorror

    Sorror Active Member

    Messages:
    376
    Likes Received:
    9
    Best Answers:
    0
    Trophy Points:
    60
    #2
    Have you an access to httpd.conf (if apache) file? It'd be much easier.
     
    Sorror, Sep 10, 2006 IP
  3. mikedamiz

    mikedamiz Peon

    Messages:
    100
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    0
    #3
    could you explain this more? I don't think i dont use a dedicated server (root access)
     
    mikedamiz, Sep 10, 2006 IP
  4. majohnst

    majohnst Peon

    Messages:
    78
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #4
    If you can't access the httpd.conf file, you can write a .htaccess file and include mod_rewrite rules to display the different domains.
     
    majohnst, Sep 13, 2006 IP