Started building out a sample site instance.
This commit is contained in:
parent
af63f84cd0
commit
462e15041b
4 changed files with 37 additions and 0 deletions
1
sample/README
Normal file
1
sample/README
Normal file
|
@ -0,0 +1 @@
|
|||
This is a sample site running in PICKLES.
|
0
sample/config.ini
Normal file
0
sample/config.ini
Normal file
28
sample/public/.htaccess
Normal file
28
sample/public/.htaccess
Normal file
|
@ -0,0 +1,28 @@
|
|||
# Sets up ETags
|
||||
FileETag MTime Size
|
||||
|
||||
# Prevent session IDs from appearing
|
||||
php_value session.use_only_cookies 1
|
||||
php_value session.use_trans_sid 0
|
||||
|
||||
# Sets up the mod_rewrite engine
|
||||
RewriteEngine on
|
||||
RewriteBase /
|
||||
|
||||
# Strips the trailing slash
|
||||
RewriteRule ^(.+)/$ $1 [R]
|
||||
|
||||
# Makes sure to skip rewriting actual files and directories
|
||||
RewriteCond %{REQUEST_FILENAME} -f [NC,OR]
|
||||
RewriteCond %{REQUEST_FILENAME} -d [NC]
|
||||
RewriteRule .* - [L]
|
||||
|
||||
# One rewrite to rule them all
|
||||
RewriteRule ^(.+)$ index.php?request=$1 [NC,QSA]
|
||||
|
||||
# Blocks access to .htaccess
|
||||
<Files .htaccess>
|
||||
order allow,deny
|
||||
deny from all
|
||||
</Files>
|
||||
|
8
sample/public/index.php
Normal file
8
sample/public/index.php
Normal file
|
@ -0,0 +1,8 @@
|
|||
<?php
|
||||
|
||||
ini_set('include_path', ini_get('include_path') . ':' . getcwd() . '../');
|
||||
|
||||
require_once 'pickles.php';
|
||||
new Controller();
|
||||
|
||||
?>
|
Loading…
Add table
Add a link
Reference in a new issue