Some changes

This commit is contained in:
OptimusCrime
2014-10-16 19:21:06 +02:00
parent 5847a621e8
commit bbd3b214d1
4 changed files with 43 additions and 2 deletions

8
.gitignore vendored
View File

@@ -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
# Ignoring composer.lock (just because)
composer.lock
# Ignoring vendor dir (because files are installed using composer)
vendor

View File

@@ -1,3 +1,4 @@
<<<<<<< HEAD
Options +FollowSymLinks
RewriteEngine on
RewriteBase /
@@ -7,6 +8,13 @@ RewriteRule ^(.*)$ http://%1/$1 [R=301,L]
RewriteCond %{REQUEST_URI} !(/$|\.)
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} !-d
RewriteRule /(.*)$ /$1 [L]
RewriteRule /(.*)$ /$1 [L]

View File

@@ -12,10 +12,24 @@ The project is currently under development and runs on http://zoff.no
Install notes
=============
Composer
--------
This projects uses composer. Install composer by typing:
curl -sS https://getcomposer.org/installer | php
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
View 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