dev-master-7
dev-master-7
Apache-2.0
The Requires
by Cédric Moclyn
dev-master
9999999-dev
Apache-2.0
The Requires
- php >=7.1.9
- cmoclyn/logguer dev-master-7
by Cédric Moclyn
Wallogit.com
2017 © Pedro PelĂĄez
There is 2 versions of this Router, one for PHP 7 (branch master-7) and one for PHP 5.6 (branch master-5.6), (*1)
RewriteEngine On
RewriteCond %{REQUEST_URI} "^.*\.css" # If CSS
RewriteRule "^(.*)$" "web/css/$1" [END] # CSS folder
RewriteCond %{HTTP_HOST} "^localhost" # If localhost
RewriteRule "^(.*)$" "web/web_dev.php" [END] # Dev
RewriteRule "^(.*)$" "web/web.php" [END] # Prod
To use the router, you just have to create a .htaccess like the above's one, at the root project, and create a web folder in which you will put web.php, web_dev.php and all the resources you need., (*2)
Apache-2.0
Apache-2.0