Помощь с htaccess mod_rewrite
Есть сайт, URL у него задаются так
- test1.ru/index.php?page=company
- test1.ru/index.php?page=company-test
- test1.ru/index.php?page=company/news
- test1.ru/index.php?page=company/news-test
- test1.ru/index.php?page=company/news&day=20100412
- test1.ru/index.php?page=company/articles&art=test
- test1.ru/index.php?page=company/articles&art=my-test
- test1.ru/index.php?page=company/articles-qaz&art=test
- test1.ru/index.php?page=company/articles-qaz&art=my-test
Используя Rewrite Rule должно работать так
- test1.ru/company/news-test.html
- test1.ru/company/news/day-20100412.html
- test1.ru/company/articles/art-test.html
- test1.ru/company/articles/art-my-test.html
- test1.ru/company/articles-qaz/art-test.html
- test1.ru/company/articles-qaz/art-my-test.html
Есть правило, но работает только для первых 5-х строк:
RewriteRule ^([a-z/]+)([a-z]+)-([0-9]+)\.html index.php?page=$1&$2=$3 [L]
Как сделать чтобы корректно обрабатывались и остальные 4?
Цена - минимальная.