I hide the directory name "templetes" using the below htaccess code which has all the php files.
Options +FollowSymLinks -MultiViews
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME}.php -f
RewriteCond %{REQUEST_URI} !/$
RewriteRule (.*) $1\.php [L]
RewriteCond %{THE_REQUEST} ^[A-Z]{3,}\s/+templetes/([^\s]+) [NC]
RewriteRule ^ %1 [R=301,L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule (?!^templetes/)^(.*)$ /templetes/$1 [L,NC]
But, my all the html form in the php files has the name templetes as below
<form action="/templetes/Login.php" method="post" name="samplename">
<form action="/templetes/Logout.php" method="post" name="sample">
Do i modifty all the html forms to below or there is any other solution..
<form action"Login.php" method="post" name="samplename">
<form action="Logout.php" method="post" name="sample">
Thanks you