0

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?

Community
  • 1
  • 1
Moritz Friedrich
  • 1,371
  • 20
  • 38

0 Answers0