adimancifi / ctiga
CTiga Adiman
Installs: 3
Dependents: 0
Suggesters: 0
Security: 0
Stars: 1
Watchers: 1
Forks: 0
Open Issues: 0
Type:project
Requires
- php: ^7.3 || ^8.0
- adimancifi/blade: ^1
- adimancifi/ctiga-installer: dev-master
- codeigniter/framework: 3.1.11
- fakerphp/faker: 1.19.x-dev
- vlucas/phpdotenv: ^4.1
This package is auto-updated.
Last update: 2024-12-07 21:48:58 UTC
README
If anyone geting this engine and found some bug, you must slove it self. ;)
Download
- composer create-project adimancifi/ctiga:dev-master ctiga-project
- composer update
Minimum System Requirements
+--------------+----------------+
| System | Version |
+--------------+----------------+
| Web server | Apache 2.4.x |
| PHP | 7.3.x, 5.6.x |
| MySQL | 5.7.x |
| MariaDB | 10.3.x |
+--------------+----------------+
PHP Extension
+--------------+----------+
| Extension | Config |
+--------------+----------+
| pdo_mysql | ON |
| pdo_sqlite | ON |
| pdo_sqlite | ON |
| json | ON |
| fileinfo | ON |
| intl | ON |
+--------------+----------+
Permission
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)
.htaccess
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
.
Redirect HTTP to HTTPS
# 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]
Redirect HTTPS to HTTP
# 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]