We build. You grow.

Get best community software here

Start a social network, a fan-site, an education project with oxwall - free opensource community software

how to change the index order? | Forum

Topic location: Forum home » Support » General Questions
JoshWho
JoshWho Jul 11 '15
I would like my server to load a html doc before oxwall .


When i use the .htaccess line


DirectoryIndex index.html index.php


It still loads oxwall first.


What should i change in the htaccess to make this work?

ross Team
ross Jul 12 '15
http://www.oxwall.org/forum/topic/19798?page=1#post-95140

this is a working example and it works on our end, probably your appache/mod_rewrite configured somehow differently

ross Team
ross Jul 13 '15
Josh, if I understood your correctly you want to load first some.html file then index.php


The solution above lets you to load index.html file if you go to www.yoursite.com/index.html


However, if you want to do something like splash screen, it is not possible to do via .htaccess file, as it uses session to remember whether a user already saw it or not


There's a solution to load index.html file instead of index.php but it will load it everytime a user goes to index page. 


You will need to create a plugin in order to achieve what you want. 


JoshWho
JoshWho Jul 13 '15
ok. that makes more since. thnx