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

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.

About| Privacy statement| Terms of Service| Advertising| Contact us| Help| Sitemap|
Processed in 0.308456 second(s) , Gzip On .

© 2016 Powered by mzan.com design MATCHINFO