A simple class for friendly url

Installs: 42

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 1

Forks: 0

Open Issues: 0

pkg:composer/coffeebreaks/route

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

This package is auto-updated.

Last update: 2025-10-10 04:27:59 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]