I have recently create the .htaccess to rewrite the url for SEO friendly. The url becomes working fine. But the url I assign will effect the url of other. The .htaccess file is shown in fig. When subject file runs. The url will be as class/physics When I click on any other file on subject page. Before changing url the login page url is login.php After changing the name of other file it also effects the login.php it appears like class/login.php which is annoying. Guide me to solve this problem.
<Files .htaccess>
order allow,deny
</Files>
Options +FollowSymLinks
RewriteEngine On
#--exclude real directories
RewriteCond %{REQUEST_FILENAME} !-d
#--and files
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(\w+)/(\w+)$ ./subject.php?class=$1&subject=$2 [NC,L]
</div>