Hello everyone,
I have Lamp installed on a VPS,
I want to change the default index.html to index.php but no success.
Here is my Default.conf setting for Apache2
I also tried to redirect index.html to index.php via .htaacc via 301 redirect
but it has no effect.
can you guys tell me what is forcing Apache to load index.html ?
I have Lamp installed on a VPS,
I want to change the default index.html to index.php but no success.
Here is my Default.conf setting for Apache2
Code
<VirtualHost *:80>
ServerAdmin [email protected]
ServerName mysite.com
ServerAlias http://www.mysite.com
DocumentRoot /var/www/domains/mysite.com
DirectoryIndex index.php
CustomLog /var/www/logs/mysite.com.log combined
ErrorLog /var/www/error_logs/mysite.com.log
<Directory /var/www/domains/mysite.com/>
Options Indexes FollowSymLinks MultiViews
AllowOverride All
Order allow,deny
allow from all
</Directory>I also tried to redirect index.html to index.php via .htaacc via 301 redirect
Code
redirect 301 /index.html http://www.mysite/index.phpcan you guys tell me what is forcing Apache to load index.html ?
Criticizing someone's spelling or grammar on the internet is the last refuge of someone who doesn't have an argument.



![[Image: BQ6bF1l.png]](https://i.imgur.com/BQ6bF1l.png)