I want to make my CMS work like this, if you would write certain command anywhere in the pages hierarchy, the .htaccess would catch it and act on it. So for example: example.com/admin/=pages + @logout = it would logout. Currently, I only know how to do it like this:
RewriteRule ^@logout index.php?logout=1 [L]
# or
RewriteRule ^\=(.+)@logout index.php?page=$1&action=0&object=0&logout=1 [L,NC,QSA]
So my question is, how to make this more dynamic? Maybe, detect command following @ and $_GET it as &command=$..?
if you remove the anchor, and simply have
the pattern will trigger if
@logoutappears ANYWHERE in the URI.