.htaccess arrange alphabetically
#Cards
RewriteRule ^gallery([0-9]*)-([0-9]*).* mate.html?name=Cards&file=gallerybrowser&CatID=$1&page=$2
RewriteRule ^gallery([0-9]*).* mate.html?name=Cards&file=gallerybrowser&CatID=$1
RewriteRule ^cards.* mate.html?name=Cards&file=index
header.php
array
AFTER
"'(?<!/)mate.html\?name=Encyclopedia&file=index'",
ADD
"'(?<!/)mate.html\?name=Cards&file=gallerybrowser&CatID=([0-9]*)&page=([0-9]*)'",
"'(?<!/)mate.html\?name=Cards&file=gallerybrowser&CatID=([0-9]*)'",
"'(?<!/)mate.html\?name=Cards&file=index'",
then
AFTER the second
"encyclopedia.html",
"encyclopedia.html",
ADD
"gallery\\1-\\2.html",
"gallery\\1.html",
"cards.html",
WARNING!
Before implementing, change "mate." to "gate."
Demo:
http://www.orientalia.org/cards.html