I am trying out an alternative approach to beautiful URLs with PHP:
$request = explode("/", substr(@$_SERVER['PATH_INFO'], 1));
The above snippet will let me use URLs that are something like "www.example.com/index.php/article/how-to-diy" where "/article/how-to-diy" is the URL parameter.
I'd really like to lose the "index.php", though, and I am in no way a .htaccess-wiz, so I could use some help on making a rewriterule
that will change my URLs into "www.example.com/article/how-to-diy".
I've looked around on SO and the examples I found were all related to a classic parameter syntax (i.e. "index.php?page=12"), which is not the solution I am after.