If anyone geting this engine and found some bug, you must slove it self. ;)
- composer create-project adimancifi/ctiga:dev-master ctiga-project
- composer update
+--------------+----------------+
| System | Version |
+--------------+----------------+
| Web server | Apache 2.4.x |
| PHP | 7.3.x, 5.6.x |
| MySQL | 5.7.x |
| MariaDB | 10.3.x |
+--------------+----------------+
+--------------+----------+
| Extension | Config |
+--------------+----------+
| pdo_mysql | ON |
| pdo_sqlite | ON |
| pdo_sqlite | ON |
| json | ON |
| fileinfo | ON |
| intl | ON |
+--------------+----------+
Ubah user permission folder dan file berikut menjadi 0777
.
cifirecms
├── app/
│ ├── cache --> 777
│ └── config
│ │ └── routes
│ │ └── slug_routes.php --> 777
│ ├── controllers --> 777 (semua folder dan file)
│ ├── language --> 777 (semua folder dan file)
│ ├── logs --> 777
│ ├── models --> 777 (semua folder dan file)
│ └── views
│ ├── mod --> 777 (semua folder dan file)
│ ├── themes --> 777 (semua folder dan file)
│ └── meta_social.php --> 777
└── public --> 0777 (semua folder dan file)
Standard .htaccess configuration.
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond $1 !^(index\.php|resources|robots\.txt)
RewriteRule ^(.*)$ index.php/$1 [L,QSA]
Untuk menentukan web anda di akses dengan alamat http atau https silahkan ubah konfigurasi file .htaccess dan tambahkan kode berikut di bawah baris kode RewriteEngine On
.
# non-www to www.
RewriteCond %{HTTPS} off [OR]
RewriteCond %{HTTP_HOST} !^www\. [NC]
RewriteCond %{HTTP_HOST} ^(?:www\.)?(.+)$ [NC]
RewriteRule ^ https://www.%1%{REQUEST_URI} [L,NE,R=301]
# www to non-www.
RewriteCond %{HTTPS} off [OR]
RewriteCond %{HTTP_HOST} ^www\. [NC]
RewriteCond %{HTTP_HOST} ^(?:www\.)?(.+)$ [NC]
RewriteRule ^ https://%1%{REQUEST_URI} [L,NE,R=301]
# non-www to www.
RewriteCond %{HTTPS} on [OR]
RewriteCond %{HTTP_HOST} !^www\. [NC]
RewriteCond %{HTTP_HOST} ^(?:www\.)?(.+)$ [NC]
RewriteRule ^ http://www.%1%{REQUEST_URI} [L,NE,R=301]
# www to non-www.
RewriteCond %{HTTPS} on [OR]
RewriteCond %{HTTP_HOST} ^www\. [NC]
RewriteCond %{HTTP_HOST} ^(?:www\.)?(.+)$ [NC]
RewriteRule ^ http://%1%{REQUEST_URI} [L,NE,R=301]