PHPackages                             fernandovaller/vrouter - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Framework](/categories/framework)
4. /
5. fernandovaller/vrouter

ActiveLibrary[Framework](/categories/framework)

fernandovaller/vrouter
======================

Sistema de rotas para php 5.6

v1.3.2(5y ago)0177MITPHP

Since Mar 14Pushed 5y ago1 watchersCompare

[ Source](https://github.com/fernandovaller/vrouter)[ Packagist](https://packagist.org/packages/fernandovaller/vrouter)[ Docs](https://www.fernandovaller.com)[ RSS](/packages/fernandovaller-vrouter/feed)WikiDiscussions main Synced today

READMEChangelogDependenciesVersions (7)Used By (0)

Sistema de rotas simples para PHP 5.6
=====================================

[](#sistema-de-rotas-simples-para-php-56)

Esse projeto é baseado em um fork do projeto \[\] mas modificado para funcionar na versão do PHP 5.6

Installation
------------

[](#installation)

Router is available via Composer:

```
composer require fernandovaller/vrouter
```

#### .htaccess in apache

[](#htaccess-in-apache)

```
RewriteEngine On
#Options All -Indexes

## ROUTER WWW Redirect.
#RewriteCond %{HTTP_HOST} !^www\. [NC]
#RewriteRule ^ https://www.%{HTTP_HOST}%{REQUEST_URI} [L,R=301]

## ROUTER HTTPS Redirect
#RewriteCond %{HTTP:X-Forwarded-Proto} !https
#RewriteCond %{HTTPS} off
#RewriteRule ^ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]

# ROUTER URL Rewrite
RewriteCond %{SCRIPT_FILENAME} !-f
RewriteCond %{SCRIPT_FILENAME} !-d
RewriteRule ^(.*)$ index.php?route=/$1 [L,QSA]

```

##### Routes

[](#routes)

```
