怎么能自己创建网站,网站开发行业竞争,怎么给网站加速,东莞建设专业网站以阿里云虚拟主机为例#xff0c;服务器环境为 LAMP#xff0c;Apache2.4 php7.2 mysql5.7
1.根目录新建 index.php 文件#xff0c;将以下内容放入文件中 ?php
include ./public/index.php;2.将 public 目录下的 admin.php、backend 文件夹、static 文件夹、tinymc…以阿里云虚拟主机为例服务器环境为 LAMPApache2.4 php7.2 mysql5.7
1.根目录新建 index.php 文件将以下内容放入文件中 ?php
include ./public/index.php;2.将 public 目录下的 admin.php、backend 文件夹、static 文件夹、tinymce 文件夹移动至根目录移动好之后如下图所示 3.根目录新建.htaccess 文件将以下内容放入文件中 s Options FollowSymlinks -MultiviewsRewriteEngine On
RewriteCond %{REQUEST\_FILENAME} !-d
RewriteCond %{REQUEST\_FILENAME} !-f
RewriteRule ^(.\*)$ ./index.php/$1 \[QSA,PT,L\]SetEnvIf Authorization . HTTP\_AUTHORIZATION$04.虚拟主机后台打开以下 PHP 函数 5.分别在 app 目录、data 目录、config 目录、route 目录、view 目录、vendor 目录下放置.htaccess 文件内容如下 Require all denied