Lately I have been trying something and was trying to add a theme system like wordpress ( not creating a whole new wordpress ) just trying to implement their login.
I have this index.php file
<?php
include('core/core.php');
echo $_GET['id'];
$currentTheme = getPageData() -> theme_selected;
include("jtq-theme/" . $currentTheme . "/index.php");
?>
so this basically displays http://xxxxx/jtq-theme/default/index.php on the main page. So now when a person goes to the about us page.
so index.php is the main file that displays everything. and the about us page is being showing using the logic
http://xxxx/index.php?page=about_us
but I want the url to be
http://xxxx/about_us
and the file should be grabbed from http://xxxx/jtq-theme/default/about_us.php
How should I write the .htaccess in this case?