Forum Moderators: coopster
$var =””, or $var = “about”, or $var = “uk”, or $var = “us”
extracted from:
h*ttp://www.test.com/
h*ttp://www.test.com/about.php
h*ttp://www.test.com/uk-word/
h*ttp://www.test.com/us-word/
I have done regex for a rewrite using the htaccess before so I am familiar with it but I have not done tiered regex.
$url = $_SERVER['REQUEST_URI'];
then do regex to extract pertinent bit.
Can this be done and if so is this the right approach. If no and no wjat do you suggest.
Cheers