A simple class for friendly url

V1.0.5 2020-08-09 17:11 UTC

This package is auto-updated.

Last update: 2024-11-10 02:24:48 UTC


README

Route

A simple class for friendly url

Instalation

composer require coffeebreaks/route

Config.php

define('HOME', ""); // Base URI
define('THEME', ''); // Your theme
define('INCLUDE_PATH', 'themes'.DIRECTORY_SEPARATOR.THEME);

.htaccess

RewriteEngine On

Options All -indexes

RewriteCond %{SCRIPT_FILENAME} !-d
RewriteCond %{SCRIPT_FILENAME} !-f
RewriteRule ^(.*)$ index.php?url=$1 [L,QSA]