Hey, I'm trying to switch off my mod_rewrite dependency because it's so ridiculous to set up properly and changes server to server.
Anyway, I'm wondering if someone can help me develop a regex/string manip that will take the contents of $_SERVER["REQUEST_URI"] (the path after the tld including the first /) and be able to separate it into variables representing the subfolder structure.
e.g. www.example.com/first/second/third
put first in $1, second in $2, third in $3 etc (ideally extendable to an unlimited number of subfolders)
Thanks for any help!
🙂