Change Defaultpage

arltd

New member
Joined
Oct 17, 2011
Messages
4
I am new to DirectAdmin and have inherited a current website where index.html is the default page and works fine. I have added code to detect for mobile devices in an index.php file so I can redirect to a different site if accessing from a mobile device. Is there a way to force the domain to use index.php first instead of the current index.html as default?

Thanks in advance

j
 
Well, just remove the index.html or you need to edit the httpd.conf template in /usr/local/directadmin/data/templates/virtual_host2.conf

make sure to copy it in /usr/local/directadmin/data/templates/custom/virtual_host2.conf and edit this one so you will always can switch back without much pain.

Regards
 
Change Default

If I remove index.html I would have to comb the current site for any reference to that so nothing breaks. I was hoping just to move the index.php up in the 'chain' so it will load that first and be able to keep the current index.html in place. The path you suggested to change a .conf file doesn't exist. Anywhere other spot I can look?
 
Change default

I have the usr/local but not directadmin. I use the directadmin to manage servers settings and what not but I've never changed anything. Like I said I inherited the site and all the files are viewable through the FILES icon in directadmin and it is where I ftp changes to so maybe I'm confused some.

I was able to determine I'm on a shared hosting plan with BlueBox. I use blueboxgrid.com:2222 to login and manage settings. So is this not the full directadmin?

If I'm in the wrong spot I apologize but I found this forum from a help link after logging in and it surely says Directadmin at the top.
 
Ok, now i got what i need to know, you must contact your hosting provider to get the edit done, otherwise, if they refuse to do this change you will need to remove index.html

Regards
 
Back
Top