Comment cacher le chemin vers index.php réel

J’ai un projet Web où le fichier d’index est sur le dossier profond.

Disons que mon index de projet est sur localhost/xxx/a/b/c/index.php , mais je veux masquer le chemin /a/b/c devient localhost/index.php .

Comment coder .htaccess et où je devrais le mettre?

Je vous remercie.

Essayez ce qui suit dans public_html / .htaccess

 RewriteEngine on #if the request is not for and existent file RewriteCond %{REQUEST_FILENAME} !-f #and the request is not for and existent directory RewriteCond %{REQUEST_FILENAME} !-d #then rewrite it to /a/b/c/request RewriteRule ^(?:xxx/)?(.*)$ /xxx/a/b/c/$1 [NC,L] 

Cela va redirect en interne

 example.com/file.php 

à

 example.com/a/b/c/file.php