.htaccess
We
can modify the .htaccess file to achieve this.
RewriteEngine
On
Options
–Indexes
RewriteRule
^(.+)$ /access_file.php [L,R]
Make sure access_file.php is not in the same folder;
otherwise it will generate a redirect loop
No comments:
Post a Comment