Again, I am not sure to get it all, but analysing your RegEx, I think (.*) should be replaced with (.+) to make the rules more strict here.
-(.*)- asks Apache to capture any amount of datas (whichever type and can be none) in between two hyphens ("-"), meaning -- (-nothing-) would be redirected, where -(.+)- is asking foar at least some content, meaning -- would not be redirected which is better.
Then, as a general guideline, I think you should specify the type of data waited for, using ([0-9].+) (again I use + instead of * to disallow the empty case) to capture integers and ([a-zA-Z0-9].+) to capture text and numbers when needed (depending on the var type in the php script).
And, as a general performance matter, I do prefer to work with numerical IDs than with titles.
For example if you set a php script like this :
- Code: Select all
script.php?page=title-of-the-page
You could use a rule like this :
- Code: Select all
RewriteRule ^([a-zA-Z0-9].+)\.html$ /script.php?page=$1
To allow the use of this title-of-the-page
But this would not allow you to maintain two pages with the same title, and would lead to much longer SQL selects as there is no way to go faster than to select on a numerical index.
So I'd better go for such scripting from scratch if the script is supposed to host a large amount of different pages (such as phpBB) :
- Code: Select all
script.php?pageid=xx
You could use a rule like this :
- Code: Select all
RewriteRule ^.+-id([0-9].+)\.html$ /script.php?pageid=$1
To allow the use of this title-of-the-page-idxx.html
Of course "id" can be here whatever, but small. It won't change much as far as being Ranked in Search engines, the "idxx" added part will not jeopardise this much your keyword density in URLs, but the fact that your site will be faster will help a lot

As well, you can think of using "/" instead of "-" to separate the vars you capture.
- Code: Select all
RewriteRule ^sekce/(.+)/(.+)\.html$
For example, as long as you make sure to output the correct links and to correctly link the images (relative path would be broken here).
++