This rule is in order:
RewriteRule ^([az]+)\.php$ /index.php?zig=$1 [NC,L]
but will create an infinite loop, since the rewritten URI /index.php also matches the regex pattern. To prevent this, you need a couple of changes, such as preventing files / directories from being overwritten and deleting the period, as this is a special regular expression metacharacter:
Flag
QSA (Query String Append) saves existing query parameters when adding a new one.
source share