Can you please help me to write correctly .htaccess file. I have this:

```
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^([^\.]+)$ $1.php [NC,L]

```

So it rewrites from domanname.com/page.php to domanname.com/page - but if I type in domanname.com/page/ it goes to 404 page. What should I change to correct this problem.

Thanks.