I was Wondering if there is a way to Prevent Execution of php scripts except index.php or is there a way to redirect all .php requests to index.php.
Open .htaceess
in File Manager, and append this code to it:
RewriteCond %{REQUEST_URI} .php
RewriteRule .* index.php
Thank You Very much you made my day.
1 Like