If you have only static keywords, I prefer to use a hash map instead of individual rules. Since the complexity of the search operation for the hash map is O (1) as opposed to O (n) for n rules.
So you can do something like this:
RewriteMap arabic-keywords dbm:/path/to/file/arabic-keywords.map
- :
عربية arabic.php
الأغاني songs.php
الفنان artist.php
httxt2dbm, -:
httxt2dbm -i arabic-keywords.txt -o arabic-keywords.map
:
RewriteCond %{arabic-keywords:$0} .+
RewriteRule .+ %0 [L]
- , , , . , RewriteMap .htaccess context.