I just wrote an htaccess file and a simple rule.
RewriteRule ^/?([az]{2})/([0-9]{4})/?$ /run/run.php?country=$1&year=$2 [NC,L] This does http://www.localhost/us/2014
On the php page, I accidentally did:
echo $country.' '.$year;
This gave me the result below, which is true.
us 2014
I did not do it:
$country = $_GET['country']; $year = $_GET['year'];
But he still worked. This is normal behavior. Can I use this for the rest of the rules and site? I am using WAMP in Windows 7 Home Premium.
source share