aboutsummaryrefslogtreecommitdiffhomepage
path: root/public
diff options
context:
space:
mode:
authorMarvin Borner2018-07-20 16:34:32 +0200
committerMarvin Borner2018-07-20 16:34:32 +0200
commit74cb1477bb921a2378ea22a552b71a48c11e0931 (patch)
tree621ab17315be667c16dad8f3d5f44d67a7a47e8f /public
parent400591b34d4b0a6288834539808a9dede8a60e3a (diff)
Better API (integrated oauth completely)
Diffstat (limited to 'public')
-rw-r--r--public/.htaccess13
-rw-r--r--public/favicon.ico0
-rw-r--r--public/index.php8
-rw-r--r--public/web.config23
4 files changed, 32 insertions, 12 deletions
diff --git a/public/.htaccess b/public/.htaccess
index b75525b..903f639 100644
--- a/public/.htaccess
+++ b/public/.htaccess
@@ -1,21 +1,20 @@
<IfModule mod_rewrite.c>
<IfModule mod_negotiation.c>
- Options -MultiViews -Indexes
+ Options -MultiViews
</IfModule>
RewriteEngine On
- # Handle Authorization Header
- RewriteCond %{HTTP:Authorization} .
- RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]
-
# Redirect Trailing Slashes If Not A Folder...
RewriteCond %{REQUEST_FILENAME} !-d
- RewriteCond %{REQUEST_URI} (.+)/$
- RewriteRule ^ %1 [L,R=301]
+ RewriteRule ^(.*)/$ /$1 [L,R=301]
# Handle Front Controller...
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^ index.php [L]
+
+ # Handle Authorization Header
+ RewriteCond %{HTTP:Authorization} .
+ RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]
</IfModule>
diff --git a/public/favicon.ico b/public/favicon.ico
deleted file mode 100644
index e69de29..0000000
--- a/public/favicon.ico
+++ /dev/null
diff --git a/public/index.php b/public/index.php
index 4584cbc..c582053 100644
--- a/public/index.php
+++ b/public/index.php
@@ -4,11 +4,9 @@
* Laravel - A PHP Framework For Web Artisans
*
* @package Laravel
- * @author Taylor Otwell <taylor@laravel.com>
+ * @author Taylor Otwell <taylorotwell@gmail.com>
*/
-define('LARAVEL_START', microtime(true));
-
/*
|--------------------------------------------------------------------------
| Register The Auto Loader
@@ -17,11 +15,11 @@ define('LARAVEL_START', microtime(true));
| Composer provides a convenient, automatically generated class loader for
| our application. We just need to utilize it! We'll simply require it
| into the script here so that we don't have to worry about manual
-| loading any of our classes later on. It feels great to relax.
+| loading any of our classes later on. It feels nice to relax.
|
*/
-require __DIR__.'/../vendor/autoload.php';
+require __DIR__.'/../bootstrap/autoload.php';
/*
|--------------------------------------------------------------------------
diff --git a/public/web.config b/public/web.config
new file mode 100644
index 0000000..624c176
--- /dev/null
+++ b/public/web.config
@@ -0,0 +1,23 @@
+<configuration>
+ <system.webServer>
+ <rewrite>
+ <rules>
+ <rule name="Imported Rule 1" stopProcessing="true">
+ <match url="^(.*)/$" ignoreCase="false" />
+ <conditions>
+ <add input="{REQUEST_FILENAME}" matchType="IsDirectory" ignoreCase="false" negate="true" />
+ </conditions>
+ <action type="Redirect" redirectType="Permanent" url="/{R:1}" />
+ </rule>
+ <rule name="Imported Rule 2" stopProcessing="true">
+ <match url="^" ignoreCase="false" />
+ <conditions>
+ <add input="{REQUEST_FILENAME}" matchType="IsDirectory" ignoreCase="false" negate="true" />
+ <add input="{REQUEST_FILENAME}" matchType="IsFile" ignoreCase="false" negate="true" />
+ </conditions>
+ <action type="Rewrite" url="index.php" />
+ </rule>
+ </rules>
+ </rewrite>
+ </system.webServer>
+</configuration>