I have this code that I'm using in my MVC that I did for studies:
class Como_Funciona extends Controller {
public function __construct() {
parent::__construct();
}
public function index() {
$data = [
'title' => SITE_TITLE . ' - ' . SITE_SUBTITLE,
'brand' => SITE_BRAND,
];
$this->_view->render_template('header', $data);
$this->_view->render_template('navbar', $data);
$this->_view->render_template('pages/faq', $data);
$this->_view->render_template('footer', $data);
}
}
My url looks like this:
http://domain.com/como_funciona
I would like to leave it like this:
http://domain.com/como-funciona
Is it possible to do this with .htaccess?