Can future releases have an index.php so the program will auto start when the folder is accessed and not show a listing of the files?
Just have index.php run login.php as an example. So I will not be modifing you program files.
index.php
Re: index.php
You can easily solve this by configuring your Apache correctly:Glenn wrote:Can future releases have an index.php so the program will auto start when the folder is accessed and not show a listing of the files?
Just have index.php run login.php as an example. So I will not be modifing you program files.
Modify the following (default line)
DirectoryIndex index.html index.html.var
line to read:
DirectoryIndex login.php index.html index.html.var
Or remove all the entries that you don't need and only put the login.php behind the DirectoryIndex keyword. See also themod_dir section of the Apache Manual.
I just make an index.php that says:
Then again, I also add an alias in httpd.conf to point to my pacsone install and make it /pacsone/.
Code: Select all
<?php
if (!empty($_SERVER['HTTPS']) && ('on' == $_SERVER['HTTPS'])) {
$uri = 'https://';
} else {
$uri = 'http://';
}
$uri .= $_SERVER['HTTP_HOST'];
header('Location: '.$uri.'/pacsone/');
exit;
?>
Something is wrong with your index redirect.