I'm building a site using PHP and I ran across a big problem that I'm not sure how to fix.
My main page is index.php. To navigate through different sections of my site, you hit links that pass variables back into index.php.
i.e. here's a sample link:
index.php?location=page2
My problem is that if I type index.php/something all of my images are broken because it thinks that it's in a directory called 'something'.
How do I error check to make sure that if someone were to type this that it wouldn't screw up?