Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums Other .htaccess/web.config

  • This topic is empty.
Viewing 1 post (of 1 total)
  • Author
    Posts
  • #36115
    SycoLV
    Member

    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.

Viewing 1 post (of 1 total)
  • The forum ‘Other’ is closed to new topics and replies.