If you have access to http.conf file, open this file and search for htdocs, then replace Options Indexes FollowSymLinks by Options FollowSymLinks. Basically, Indexes is responsible for showing your directory structure.
Require all granted
Open your .htaccess file and add the following line. It will give not 403 forbidden warning message
Open your .htaccess file and add the following lines. It will give 403 forbidden warning message and that's why you need to add a page for redirection if you want.
ErrorDocument 403 https://www.example.com