Need help with mod rewrite

Discussion in 'Apache' started by stargate03, May 23, 2008.

  1. #1
    ok here goes

    i have set up wildcard domains on my server

    i have put the following in my root .htaccess file

    all wildcard subdomains show fine
    in the root directory it shows the index.php as first page seen by visitors

    however, i want to keep the wildcard subdomains as above
    but in the root directory of the main domain, show index.html instead

    so i guess i need some sort of conditional rule

    hope someone can help

    heres the htaccess file as it is now

    Options +FollowSymlinks
    RewriteEngine On
    RewriteRule ^manage(.*)$ - [L]
    RewriteRule ^aggregate(.*)$ - [L]
    RewriteRule ^ping(.*)$ - [L]
    RewriteRule ^batch(.*)$ - [L]
    RewriteRule ^export(.*)$ - [L]
    RewriteRule ^templates(.*)$ - [L]
    RewriteRule ^favicon.ico(.*)$ - [L]
    RewriteRule ^robots.txt$ - [L]
    RewriteRule ^plain.php$ - [L]
    RewriteRule ^(.*)$ index.php [L]
     
    stargate03, May 23, 2008 IP