Oke, Everthing is done and Running well in Production Server, App Grav Is more secure now! this is my step.
- 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 andViewerJS
is other app need my grav site to operated.
-
Follow instruction in link before, in resource 1.
-
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
- Finish, You can acceess your site like normal.
Big thanks to @Karmalakas for long discussion and make me more creative search the problem.