Im pretty new to this, but according to my logic this should work.
What i want to do is catch all urls that do not match any rules before the end, and redirect them to error.php. If i try to access localhost/create or localhost/create/ it still redirects me to error.php. Am I missing something?
RewriteEngine On
RewriteRule ^create/?$ create.php [NC,L]
RewriteRule ^ error.php [NC,L]