adimancifi / ctiga
CTiga Adiman
dev-master
2022-03-07 15:55 UTC
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-09-07 21:03:07 UTC
README
如果任何人获取了这个引擎并发现一些错误,你必须自己解决。 ;)
下载
- 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 |
+--------------+----------------+
PHP 扩展
+--------------+----------+
| Extension | Config |
+--------------+----------+
| pdo_mysql | ON |
| pdo_sqlite | ON |
| pdo_sqlite | ON |
| json | ON |
| fileinfo | ON |
| intl | ON |
+--------------+----------+
权限
将以下用户权限文件夹和文件的权限更改为 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
标准 .htaccess 配置。
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond $1 !^(index\.php|resources|robots\.txt)
RewriteRule ^(.*)$ index.php/$1 [L,QSA]
为了确定您的网站是通过 http 还是 https 访问,请更改 .htaccess 文件配置,并在 RewriteEngine On
代码下方添加以下代码。
将 HTTP 重定向到 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]
将 HTTPS 重定向到 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]