using rewrite rules instead of 404