mirror of
https://github.com/KevinMidboe/zoff.git
synced 2025-10-29 18:00:23 +00:00
Some changes
This commit is contained in:
8
.gitignore
vendored
8
.gitignore
vendored
@@ -1,3 +1,11 @@
|
|||||||
|
# Ignore .htaccess (copy ht.access and create your own)
|
||||||
|
.htaccess
|
||||||
|
|
||||||
|
# Ignoring composer.phar (because we don't want to push it to Github)
|
||||||
composer.phar
|
composer.phar
|
||||||
|
|
||||||
|
# Ignoring composer.lock (just because)
|
||||||
composer.lock
|
composer.lock
|
||||||
|
|
||||||
|
# Ignoring vendor dir (because files are installed using composer)
|
||||||
vendor
|
vendor
|
||||||
10
.htaccess
10
.htaccess
@@ -1,3 +1,4 @@
|
|||||||
|
<<<<<<< HEAD
|
||||||
Options +FollowSymLinks
|
Options +FollowSymLinks
|
||||||
RewriteEngine on
|
RewriteEngine on
|
||||||
RewriteBase /
|
RewriteBase /
|
||||||
@@ -7,6 +8,13 @@ RewriteRule ^(.*)$ http://%1/$1 [R=301,L]
|
|||||||
RewriteCond %{REQUEST_URI} !(/$|\.)
|
RewriteCond %{REQUEST_URI} !(/$|\.)
|
||||||
RewriteRule (.*) %{REQUEST_URI}/ [R=301,L]
|
RewriteRule (.*) %{REQUEST_URI}/ [R=301,L]
|
||||||
|
|
||||||
|
=======
|
||||||
|
# Mod rewrite
|
||||||
|
RewriteEngine On
|
||||||
|
RewriteBase /Zoff
|
||||||
|
|
||||||
|
# Route all requests to index.php unless real file or folder
|
||||||
|
>>>>>>> Some changes
|
||||||
RewriteCond %{REQUEST_FILENAME} !-f
|
RewriteCond %{REQUEST_FILENAME} !-f
|
||||||
RewriteCond %{REQUEST_FILENAME} !-d
|
RewriteCond %{REQUEST_FILENAME} !-d
|
||||||
RewriteRule /(.*)$ /$1 [L]
|
RewriteRule /(.*)$ /$1 [L]
|
||||||
|
|||||||
16
README.md
16
README.md
@@ -12,10 +12,24 @@ The project is currently under development and runs on http://zoff.no
|
|||||||
Install notes
|
Install notes
|
||||||
=============
|
=============
|
||||||
|
|
||||||
|
Composer
|
||||||
|
--------
|
||||||
|
|
||||||
This projects uses composer. Install composer by typing:
|
This projects uses composer. Install composer by typing:
|
||||||
|
|
||||||
curl -sS https://getcomposer.org/installer | php
|
curl -sS https://getcomposer.org/installer | php
|
||||||
|
|
||||||
After that, fetch project dependencies:
|
After that, fetch project dependencies:
|
||||||
|
|
||||||
php composer.phar update
|
php composer.phar update
|
||||||
|
|
||||||
|
.htaccess
|
||||||
|
---------
|
||||||
|
|
||||||
|
We also use .htaccess to prettify the urls. To keep it easy to develop elsewhere, we have a stock ht.access file. Copy this and call it .htaccess. If you develop in a directory that is not the base in your webserver change
|
||||||
|
|
||||||
|
RewriteBase /
|
||||||
|
|
||||||
|
To
|
||||||
|
|
||||||
|
RewriteBase /your-sub-directory
|
||||||
11
ht.access
Executable file
11
ht.access
Executable file
@@ -0,0 +1,11 @@
|
|||||||
|
# Mod rewrite
|
||||||
|
RewriteEngine On
|
||||||
|
RewriteBase /
|
||||||
|
|
||||||
|
# Route all requests to index.php unless real file or folder
|
||||||
|
RewriteCond %{REQUEST_FILENAME} !-f
|
||||||
|
RewriteCond %{REQUEST_FILENAME} !-d
|
||||||
|
RewriteRule ^(.*)$ index.php?q=$1 [L,QSA]
|
||||||
|
|
||||||
|
# Disallow directory listing
|
||||||
|
Options -Indexes
|
||||||
Reference in New Issue
Block a user