企业网站建设需要哪些资料,商业网站 技术,深圳建设集团网站官网,如何做优惠券网站以阿里云虚拟主机为例#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