mod_rewrite for subfolder required

Discussion in 'Apache' started by frenchi1966, Nov 20, 2008.

  1. #1
    Hello,

    kindly ask for help on a mod_rewrite issue.

    the .htacess file in the root directory is controlling my main domain
    mydomain.at. this works with following commands

    RewriteEngine On


    ReWriteCond %{HTTP_HOST} mydomain.at
    ReWriteCond %{REQUEST_URI} !folder1/
    ReWriteRule ^(.*)$ folder1/$1 [L]


    so far so good -this works fine.
    Now i added an additional programm which is in folder1/resources/.

    How can i tell the system following:

    a) when you retrieve mydomain.at/resources/ to look into folder1/resources

    b) when you retrieve mydomain.at/resources/admin to look into folder
    folder1/resources/admin

    currently system is always jumping to mydomain.at

    Believe there must be an exception to above statements.

    Many thanks in advance for your coop

    Regards
     
    frenchi1966, Nov 20, 2008 IP