I want to prevent direct access of my PHP pages. I tried running ".htaccess", but it is not running. There are so many pages in my project. but I want in some of them. My PHP pages are: example1.php example2.php
My ".htaccess" code is:
Options +FollowSymlinks
RewriteEngine on
RewriteRule ^/?example/([0-9]+)$ exam-ple.php [NC,L]
If it is OK, then why it is not running. I want any type of solution.