Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    New Coder
    Join Date
    Mar 2010
    Posts
    40
    Thanks
    7
    Thanked 0 Times in 0 Posts

    Index.html priority issue...

    Hi, Not sure if this is the right forum but I need to display a .html file before a .php file

    This is what I tried:

    DirectoryIndex index.html index.php
    RewriteEngine on
    RewriteRule !\.(js|ico|txt|gif|jpg|png|css|mpeg|mov|swf|flv|fla|avi)$ index.php

    However, the website uses Zend optimiser and this config does not work - any ideas? (Or is there a Zend forum!?)

  • #2
    Supreme Master coder! abduraooft's Avatar
    Join Date
    Mar 2007
    Location
    N/A
    Posts
    14,852
    Thanks
    160
    Thanked 2,223 Times in 2,210 Posts
    Blog Entries
    1
    I need to display a .html file before a .php file
    Then you might need to add html also into that RewriteRule list.
    The Dream is not what you see in sleep; Dream is the thing which doesn't let you sleep. --(Dr. APJ. Abdul Kalam)


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •