Access Spesific Folder Via URL

Oke, Everthing is done and Running well in Production Server, App Grav Is more secure now! this is my step.

  1. Move Grav App in root folder to subfolder of root, example: grav ~ resource 1, in my case it’s like this

grav folder is my grav site and ViewerJS is other app need my grav site to operated.

  1. Follow instruction in link before, in resource 1.

  2. Custom .htaccess for you apache config like below ~ resource 2

<IfModule mod_rewrite.c>

RewriteEngine On
RewriteRule ^(ViewerJS)($|/) - [L]
RewriteCond %{REQUEST_URI} !^/grav/
RewriteRule ^(.*)$ /grav/$1

</IfModule>

# Begin - Prevent Browsing and Set Default Resources
Options -Indexes
DirectoryIndex index.php index.html index.htm
# End - Prevent Browsing and Set Default Resources
  1. Finish, You can acceess your site like normal.

Big thanks to @Karmalakas for long discussion and make me more creative search the problem.