smbongtoi85
Verified User
- Joined
- Dec 9, 2019
- Messages
- 9
Hello all!, sorry about my english.
I have a question about DirectoryIndex in Apache
I created 2 users have 2 source PHP:
- User 1: Pure PHP ( have include .htaccess but HAVEN'T add line "DirectoryIndex index.php index.html index.htm" ) with PHP 5.3 suphp
- User 2: Laravel framework ( have include .htaccess but HAVE add line "DirectoryIndex index.php index.html index.htm" ) with PHP 7.4 suphp
Both are run by default index.php file when access domain of each user. That is a normal. But if I remove remove line "DirectoryIndex index.php index.html index.htm" in "User 2" then I can't access to index.php if just enter domain.
Please expand it help me, and help me to config to can default index.php when access domain, I want them in sync. Thanks for reading and for help.
I have a question about DirectoryIndex in Apache
I created 2 users have 2 source PHP:
- User 1: Pure PHP ( have include .htaccess but HAVEN'T add line "DirectoryIndex index.php index.html index.htm" ) with PHP 5.3 suphp
- User 2: Laravel framework ( have include .htaccess but HAVE add line "DirectoryIndex index.php index.html index.htm" ) with PHP 7.4 suphp
Both are run by default index.php file when access domain of each user. That is a normal. But if I remove remove line "DirectoryIndex index.php index.html index.htm" in "User 2" then I can't access to index.php if just enter domain.
Please expand it help me, and help me to config to can default index.php when access domain, I want them in sync. Thanks for reading and for help.