StackOverflow has a very neat, clean URL format. It looks the same as a directory structure, but there can't be a directory for each question on here! My question is this:
How can I get http://www.site.com/sections/tutorials/tutorial1
, for example, to stay like that in the address bar, but convert it to a $_GET
request for PHP to mess around with?
I could use a .htaccess
file, but I don't want the URL being rewritten - I'd like it to remain clean and friendly. Is my only option here to use PHP's string splitting functions to get some pretend $_GET
data?
Thanks,
James