I’m attempting to rewrite all all urls that are 4 exactly characters but allow other urls to be rewritten to it’s name +.php
domain.com/a4Lv/ to domain.com/file.php?id=a4Lv
domain.com/longerThan4Chars/ to domain.com/longerThan4Chars.php
Is rewriting based on length possible?
This should work. I prefer to specify which characters are allowed (first option) but if you want to allow anything, use the second
Breakdown: