my route : I want to route and use this condition without .htaccess. if(isset($_GET[“route”])) { if ($_GET[“route”] == ‘home’ || $_GET[“route”] == ‘names’ || $_GET[“route”] == ‘logout’){ include “pages/”.$_GET[“route”].".php"; }
I use in .htaccess this:
Options All -Indexes
RewriteEngine On
RewriteRule ^([-a-zA-Z0-9]+)$ index.php?route=$1
Question is : how I should route with out htaccess.
1 post - 1 participant