Compare commits
2 commits
d2294d8572
...
4575ca9bfc
Author | SHA1 | Date | |
---|---|---|---|
4575ca9bfc | |||
c3ed56cb99 |
5 changed files with 10 additions and 6 deletions
|
@ -1,6 +1,9 @@
|
||||||
|
|
||||||
RedirectMatch 404 /\.git
|
DirectoryIndex index.php
|
||||||
|
|
||||||
RewriteEngine On
|
RewriteEngine On
|
||||||
RewriteCond %{REQUEST_FILENAME} -f
|
RewriteBase /
|
||||||
RewriteRule (.*) /src/$0 [END]
|
|
||||||
|
RewriteCond %{REQUEST_URI} !^/www.*
|
||||||
|
RewriteCond %{REQUEST_URI} !^www.*
|
||||||
|
RewriteRule (.*) /www/$0 [END]
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
<html>
|
<html>
|
||||||
<head>
|
<head>
|
||||||
<title>Lucidragons' Fire</title>
|
<title>Lucidragons' Fire</title>
|
||||||
<link rel="stylesheet" href="src/dergstyle.css">
|
<link rel="stylesheet" href="/dergstyle.css">
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<h1 id="big_title">The dergsite</h1>
|
<h1 id="big_title">The dergsite</h1>
|
||||||
|
|
1
www/.htaccess
Normal file
1
www/.htaccess
Normal file
|
@ -0,0 +1 @@
|
||||||
|
Allow from all
|
|
@ -1,8 +1,8 @@
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
require_once 'vendor/autoload.php';
|
require_once '../vendor/autoload.php';
|
||||||
|
|
||||||
$loader = new \Twig\Loader\FilesystemLoader('templates');
|
$loader = new \Twig\Loader\FilesystemLoader('../templates');
|
||||||
$twig = new \Twig\Environment($loader);
|
$twig = new \Twig\Environment($loader);
|
||||||
|
|
||||||
echo $twig->render('index.html',[
|
echo $twig->render('index.html',[
|
Loading…
Add table
Add a link
Reference in a new issue