I basically want to rewrite URLs using PHP. I built my script on this answer.
Thinking about the design again though I decided to construct my URLs like this:
http://example.com/category/sub-category/page-name
Now when I try to use $_SERVER['REQUEST_URI']
, the apache server just throws an 'internal server error 500 - script error'. This only seems to appear if the requested URL contains more than one /
-character.
How can I store the full path requested?