- Worked on skeleton update
This commit is contained in:
1 parent
34ca18f34c
commit
f9c081ff26
6 files changed
+183
-53
No files matched your search
@@ -1,12 +1,18 @@
|
||||
<IfModule mod_rewrite.c>
|
||||
RewriteEngine On
|
||||
# RewriteBase /
|
||||
|
||||
# Force HTTPS (disabled by default)
|
||||
# RewriteCond %{HTTPS} off
|
||||
# RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
|
||||
|
||||
# Remove trailing slashes from request URL
|
||||
#RewriteCond %{REQUEST_FILENAME} !-d
|
||||
#RewriteCond %{REQUEST_URI} (.+)/$
|
||||
#RewriteRule ^ %1 [R=301,L]
|
||||
|
||||
# Redirect everything into app
|
||||
RewriteCond %{REQUEST_FILENAME} !-f
|
||||
RewriteCond %{REQUEST_FILENAME} !-d
|
||||
RewriteCond %{REQUEST_URI} (.+)/$
|
||||
RewriteRule ^ %1 [R=301,L]
|
||||
RewriteRule ^([^?]*)$ %1 [NC,L,QSA]
|
||||
</IfModule>
|
||||
@@ -1,8 +1,8 @@
|
||||
<?php
|
||||
|
||||
try {
|
||||
require_once("../src/Kernel.php");
|
||||
require_once(dirname(__DIR__)."/src/Kernel.php");
|
||||
}
|
||||
catch(\Throwable $t) {
|
||||
echo $t->getMessage();
|
||||
echo sprintf("%s in <strong>%s</strong> <pre>%s</pre>", $t->getMessage(), $t->getFile() . ":" . $t->getLine(), $t->getTraceAsString());
|
||||
}
|
||||
@@ -1,45 +0,0 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<configuration>
|
||||
<system.webServer>
|
||||
<rewrite>
|
||||
<rules>
|
||||
<rule name="Remove trailing slash" stopProcessing="true">
|
||||
<match url="(.*)/$" />
|
||||
<conditions>
|
||||
<add input="{REQUEST_FILENAME}" matchType="IsFile" negate="true" />
|
||||
<add input="{REQUEST_FILENAME}" matchType="IsDirectory" negate="true" />
|
||||
</conditions>
|
||||
<action type="Redirect" redirectType="Permanent" url="{R:1}" />
|
||||
</rule>
|
||||
<rule name="Framework Routing" stopProcessing="true">
|
||||
<match url="." ignoreCase="false" />
|
||||
<conditions logicalGrouping="MatchAll">
|
||||
<add input="{REQUEST_FILENAME}" matchType="IsFile" ignoreCase="false" negate="true" />
|
||||
<add input="{REQUEST_FILENAME}" matchType="IsDirectory" ignoreCase="false" negate="true" />
|
||||
</conditions>
|
||||
<action type="Rewrite" url="index.php" />
|
||||
</rule>
|
||||
</rules>
|
||||
</rewrite>
|
||||
<staticContent>
|
||||
<remove fileExtension=".js" />
|
||||
<mimeMap fileExtension=".js" mimeType="application/x-javascript; charset=UTF-8" />
|
||||
<remove fileExtension=".css" />
|
||||
<mimeMap fileExtension=".css" mimeType="text/css; charset=UTF-8" />
|
||||
<remove fileExtension=".woff" />
|
||||
<remove fileExtension=".eot" />
|
||||
<remove fileExtension=".ttf" />
|
||||
<remove fileExtension=".svg" />
|
||||
|
||||
<mimeMap fileExtension=".eot" mimeType="application/vnd.ms-fontobject" />
|
||||
<mimeMap fileExtension=".ttf" mimeType="application/font-sfnt" />
|
||||
<mimeMap fileExtension=".svg" mimeType="image/svg+xml" />
|
||||
<mimeMap fileExtension=".woff" mimeType="application/font-woff" />
|
||||
</staticContent>
|
||||
<handlers>
|
||||
<remove name="PHP7.3" />
|
||||
<add name="PHP7.3" path="*.php" verb="*" modules="FastCgiModule" scriptProcessor="C:\php\7.4.0\php-cgi.exe" resourceType="File" requireAccess="Script" />
|
||||
</handlers>
|
||||
<httpErrors errorMode="Detailed" />
|
||||
</system.webServer>
|
||||
</configuration>
|
||||
Reference in new issue
Block a user