Index file loader, Wordpress-like
<p>I have a website with a huge htaccess, but I'm trying to find a nice way to have a Wordpress-like index.php file: everything is redirected to it, it starts the system, loads include files, loads configuration files, and finally it loads the HTML environment.</p>

<p>I'm not sure if complex websites use this system, I'm not sure if it's a good way to load a page, but I think it is since the index.php would load most of the include files and would define constants that are used on most pages, so I won't have to include and define in every page.</p>

<p>So what I'm asking here if any of you know a good way to do this.
If everything is directed to <code>index.php</code> then it'd act like an <code>.htaccess</code>, and the only way I can think of it will load the content for the correct page is by checking the <code>$_SERVER['REQUEST_URI']</code> variable and according to it, load a page (it'd have many "if").</p>

<p>Or I could use the huge <code>.htaccess</code> and make requests like "<code>www.site.com/post/</code>" go to "<code>index.php?page=post</code>" and load pages according to <code>$_GET['post']</code>.</p>

<p>Since the answer <strong>could</strong> be long, I was thinking of a website where this is explained or something like that, or the name for this system (if it has one), so if any of you know how to correctly use this system, please let me know how can I find more information about it.</p>
