iam creating a php website and iam using htaccess to hide php extensions with this script
Options +FollowSymlinks
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME}.php -f
RewriteRule ^(.+)$ /$1.php [L,QSA]
so if i access localhost/mypage.php
or localhost/mypage
both will redirect me to mypage.php
i want if i accessed it from /mypage.php
then redirect me to my page not found page
i mean that the user must access it from localhost/mypage
only
any ideas ??