Possible Duplicate:
PHP passing parameters via URL
I know that if you have a page www.domain.com/?id=ABC you can get the ABC in the index.php file using a
$_GET['id'];
My question is how does a bit.ly/ABC can give the ABC to their php file without having an ?id=ABC in the path?
In theory they do actually have
?id=ABC(or whatever their $_GET-parameter may be called), however it’s being “hidden” viamod_rewrite.A simple example of how their rewrite could be:
This would mean that
yourdomain.com/ANYTHINGhere123ThatsAnAlphaNumericwould pass on the value after the slash to your$_GET['id'].Hope this helps out!