All my rewrite rules up to this moment used $1, $2... variables to form a clean URL.
Now I need to redirect basing on a part of domain name (http://subdir.example.com
=> http://example.com/subdir
) and many examples I found using %1 variable instead of $1 format. I should note that subdir
is an arbitrary string.
This is unclear for me. I'm trying to find the meaning of $1 and %1 variables for hour or two and still can not find anything useful.