1
0

Moved public dir to root

This commit is contained in:
Christiaan Goossens 2017-03-29 13:32:39 +02:00
parent ff4d832ad5
commit 1f9f6478e6
6 changed files with 7 additions and 9 deletions

View File

@ -1,2 +1,4 @@
RewriteEngine On
RewriteRule ^$ /public [L]
RewriteEngine on
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php/$1 [NC,L,QSA]

View File

Before

Width:  |  Height:  |  Size: 2.9 KiB

After

Width:  |  Height:  |  Size: 2.9 KiB

View File

@ -10,7 +10,7 @@
},
"scripts": {
"run": "composer install && composer start",
"start": "php -S 0.0.0.0:8080 -t public public/index.php"
"start": "php -S 0.0.0.0:8080"
},
"autoload": {
"psr-4": {"Inforbank\\": "src/"}

View File

@ -38,10 +38,10 @@ if (PHP_SAPI == 'cli-server') {
/**
* Require the Composer autoloader to load dependencies
*/
require __DIR__ . '/../vendor/autoload.php';
require __DIR__ . '/vendor/autoload.php';
/**
* Load the bootstrapping script
*/
include __DIR__ . '/../src/bootstrap.php';
include __DIR__ . '/src/bootstrap.php';

View File

@ -1,4 +0,0 @@
RewriteEngine on
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php/$1 [NC,L,QSA]