htaccess rewriterule index.html

Posted by user322731 on Stack Overflow See other posts from Stack Overflow or by user322731
Published on 2010-04-23T16:06:28Z Indexed on 2010/04/23 18:03 UTC
Read the original article Hit count: 127

Filed under:

I'm using a PHP framework which redirect all URL to the index.php file using the following rule:

RewriteRule ^(.*)$ /index.php/$1 [L]

However, I want to be able to use index.html IF ANY ONLY IF users hit the home page. For instance, if users hit http:// website.com it will render the index.html file. Any other URL will use index.php. Could someone help?

ThankS

© Stack Overflow or respective owner

Related posts about .htaccess