PDA

View Full Version : Login.html change to login.php



congkai
07-12-2010, 02:02 AM
Hi everyone,

http://domain.com:2222 will bring us to login.html from the templates folder automatically.

The question is, can i change login.html to login.php so that i can put code from http://directadmin.com/forum/showthread.php?t=25617 into it?

i dont want to tell my users to go some login.php instead i wish to replace the login.html which is shown in http://domain.com:2222

Thanks for reading.

floyd
07-12-2010, 03:35 AM
Is this what you are looking for
http://www.directadmin.com/features.php?id=250

congkai
07-12-2010, 05:21 AM
Yea but the first file that DA reads is login.html.

Is there a way we can change login.html to login.php so that the first file that DA read is login.php

floyd
07-12-2010, 05:44 AM
Use login.html to redirect to your external login.php page.

floyd
07-12-2010, 05:45 AM
Have you tried including php code in index.html? It might work.

congkai
07-12-2010, 08:04 AM
i tried inserting php codes in to index.html it does not work.

nobaloney
07-12-2010, 10:46 AM
How about changing index.html so it's just a redirect to index.php? Have you tried that?

congkai
07-12-2010, 11:07 AM
it went back to the default white da login page

scsi
07-12-2010, 12:37 PM
<meta http-equiv="REFRESH" content="0;url=login.php">