htaccess mod rewrite's condition
I am working on SEF URLs, but since my knowledge of regex is far too short, I came up with a situation where I am not able to find a solution on my own.
RewriteCond %{REQUEST_URI} .([^/])*.html$ [NC]
RewriteRule ^(.*).html$ index.php?page=$1 [L,QSA] For example: mydomain.com/page.html would give $_GET['page'] = 'page' and mydomain.com/pa/ge.html would give $_GET['page'] = 'pa/ge'.
Maybe someone would be able to edit my regex and explain what I am doing wrong.
Thank you!