problem with mod_rewrite and ojs software

Discussion in 'Apache' started by orazio, Jun 28, 2007.

  1. #1
    Hallo,
    I'm going mad with a server configuration.

    That's my problem:
    There is an Institution: www.institution.org

    It offers a e-journals service between OJS software:

    www.ojs.institution.org

    So each journal has this link:

    www.ojs.institution.org/index.php/Journal

    So they asked to transform this in this other:

    www.Journal.institution.org

    SO, first of all, I asked to the admin of www.institution.org to
    create a second level domain www.Journal.institution.org and point it
    to the server wich hosts: www.ojs.institution.org

    Now I have to point www.Journal.institution.org to the right address:
    i.e. www.ojs.institution.org/index.php/Journal

    I tried Virtual Servers, but each Journal has not an its own
    directory, and i cannot point the Virtual Server directives to a php
    function call (i.e. www.ojs.institution.org/index.php/Journal) , but,
    if I understand, it has to point to a real filesystem resource.

    So I'm trying with mod_rewrite.

    But I don't know how to write the Rules to rewrite them.
    At least
    www.Journal.institution.org

    has to point here:
    www.ojs.institution.org/index.php/Journal

    Can anyone help me?
    Tnx
    Alfredo
     
    orazio, Jun 28, 2007 IP