0
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 from my root folder.
I would like to know if there is a way for the request to pass only through the file . htaccess?
Obs.: I don’t have access to the httpd.conf or apache2.conf file.