I’ve looked and found things about negative look ahead but I am still not sure what I should do for this. I have a RewriteRule ^([a-zA-Z0-9]+)/?$ which works fine except now I want it to exclude specifically the word “help” (only “help” and not “helper”, “whelp”, etc) and possibly a small number of other words in the future. and sorry, I know this has a lot of similar questions but I’ve not been able to figure out how to apply them to this specifically.
I’ve looked and found things about negative look ahead but I am still not
Share
Apache mod-rewrite should have a well-defined order of how it parses through the RewriteRules and which rule it will follow if there are conflicts.
Assuming it will follow the first matching rule, simply define the specific rules before the general one.