Home How to get the first directory from url path as an apache env

How to get the first directory from url path as an apache env

kujiy
1#
kujiy Published in 2017-12-07 05:51:08Z
 I want an apache env ${FIRSTDIR} from url. http://example.com/abc/${FIRSTDIR} = abc http://example.com/xyz/ \${FIRSTDIR} = xyz  I'm using apache 2.4. Is it possible?
 You need to login account before you can post.
Processed in 0.308456 second(s) , Gzip On .