Htaccess files have never been a strong point for me, unfortunately.
I'll just jump straight:
#Turn RewriteEngine on Options +FollowSymLinks RewriteEngine on
So going to domain.com/themes/theme-name/ and domain.com/themes/view.php?theme=theme-name works fine, and both show the same page / results. However, switching to domain.com/account/index.php?page=page works, but switching to domain.com/account/page/ doesn't, it just returns 404 Not Found.
page variables can be things like login , create , dashboard and logout , etc. index.php in the account directory will handle this variable.
I am confused by the question of why this does not work in the same situation, just in a different directory and a different file name, but both of them are declared in the rule. Anyone now what am I doing wrong?
EDIT
I also tried to do this and define the pages, for example:
RewriteRule ^account/login/$ account/login.php RewriteRule ^account/logout/$ account/logout.php RewriteRule ^account/create/$ account/create.php RewriteRule ^account/dashboard/$ account/dashboard.php
But still it just returns 404
source share