Can someone explain me how does .htaccess/web.config works?
For simple pages I usually used:
switch($_GET) {
case 'single_axle':
$load_content = $prefix.'pages/single_axle.php';
break;
}
?>
But it gets too messy when there is more than 30+ pages. How can I make it to happen automatically?
For example I need to load php from /pages/trailers.php and load it as http://name.com/trailers and user can choose a trailer type for example Single axle. it loads php from /pages/single_axle.php as http://name.com/trailer/single_axle
I hope someone understand my question.