Fixed 404 errors using Rewrites