Blogger Information
Blog 13
fans 0
comment 0
visits 18674
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
pcfcms虚拟主机怎么设置?
麦站网络
Original
645 people have browsed it

最近有客户问到阿里云的虚拟主机下面怎么跑?这个问题不紧是pcfcms的问题,也是thinkphp6的问题,下面我简述一下,虚拟主机怎么设置代码跑起来。

主要设置三个文件:

1、伪静态文件.htaccess

RewriteEngine on
RewriteCond %{REQUEST_URI} !^/public/
RewriteRule ^(.*)$ /public/$1 [L]

2、设置前端入口文件

require __DIR__ . '/../vendor/autoload.php';
修改为
require __DIR__ . '/vendor/autoload.php';

3、后台登陆入口

http://www.pcfcms.com/public/login.php


Statement of this Website
The copyright of this blog article belongs to the blogger. Please specify the address when reprinting! If there is any infringement or violation of the law, please contact admin@php.cn Report processing!
All comments Speak rationally on civilized internet, please comply with News Comment Service Agreement
0 comments
Author's latest blog post