I would like to redirect all requests from my Apache server to the test.php file and remove the index.php file from the root_folder (public_html or DocumentRoot).
I have the following code:
RewriteEngine On
RewriteBase /
RewriteRule . test.php [L]
It works as long as the index.php file is in the root folder. When removing the index.php file Rewrite does not work and Apache displays the list of all files and folders in my root folder.
I would like to know if the request has only to pass through the .htaccess file?
Note: I do not have access to the httpd.conf or apache2.conf file.