Moved public dir to root
This commit is contained in:
parent
ff4d832ad5
commit
1f9f6478e6
@ -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]
|
||||
|
Before Width: | Height: | Size: 2.9 KiB After Width: | Height: | Size: 2.9 KiB |
@ -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/"}
|
||||
|
@ -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';
|
@ -1,4 +0,0 @@
|
||||
RewriteEngine on
|
||||
RewriteCond %{REQUEST_FILENAME} !-f
|
||||
RewriteCond %{REQUEST_FILENAME} !-d
|
||||
RewriteRule ^(.*)$ index.php/$1 [NC,L,QSA]
|
Reference in New Issue
Block a user