CodeIgniter Forums
Load index.html file instead of index.php first? - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20)
+--- Forum: Archived General Discussion (https://forum.codeigniter.com/forumdisplay.php?fid=21)
+--- Thread: Load index.html file instead of index.php first? (/showthread.php?tid=8751)



Load index.html file instead of index.php first? - El Forum - 05-29-2008

[eluser]Computerzworld[/eluser]
Hello. I am having a problem that I want to load index.html file instead of default index.php. I want to load index.html because it contains the javascript code for ajax preloader and that calls my index.php. but I am unable to load index.html directly. Which changes I have to make in order to load index.html? Here is the .htaccess file which is at the root of my site.

Code:
RewriteEngine on
RewriteCond $1 !^(index\.php|images|css|uploads|jscripts|robots\.txt)
RewriteRule ^(.*)$ index.php/$1 [L]

Please help me. Thank you in advance.


Load index.html file instead of index.php first? - El Forum - 05-30-2008

[eluser]nmweb[/eluser]
Code:
RewriteEngine on
RewriteCond $1 !^(index\.php|images|css|uploads|jscripts|robots\.txt|index\.html)
RewriteRule ^(.*)$ index.php/$1 [L]