内容简介:本教学使用环境介绍伺服器端:Ubuntu 18.04 LTS资料库:Mariadb 10.1.34(Mysql)
本教学使用环境介绍
伺服器端:Ubuntu 18.04 LTS
资料库:Mariadb 10.1.34(Mysql)
语言版本:php 7.3
本机端:MacOS High Sierra
首先安装好 apache 后,启用 rewrite 功能
$ a2enmod rewrite
然后再到 /etc/apache2/apache2.conf
添加内容
$ nano /etc/apache2/apache2.conf
内容为
<Directory /var/www/>
Options Indexes FollowSymLinks
AllowOverride All
Require all granted
</Directory>
记得将路径设为你的网站根目录路径呦!
接着将 apache reload
service apache2 reload
然后去你的网站根目录中添加档案为 .htaccess,并加入以下内容
Options -Indexes Options +FollowSymlinks RewriteEngine on
在同一个 .htaccess
档案中添加 RewriteRule,就像这样
Options -Indexes Options +FollowSymlinks RewriteEngine on RewriteRule ^admin/index$ admin/index.php
这样只要访问路径 /admin/index
就等于是访问了 /admin/index.php
,apache已经帮你隐藏副档名了
Line ID:ianmac
QQ:1258554508
以上就是本文的全部内容,希望对大家的学习有所帮助,也希望大家多多支持 码农网
猜你喜欢:- 透过 OKR 进行项目过程管理
- 透过Python反补ES6
- [译] Git:透过命令学概念 —— 第一部分
- 透过ISICDM,看医学图像分析的未来趋势与挑战
- iOS基础补完计划--透过堆栈看事件响应机制
- 当心!专家称黑客可透过智能咖啡机盗取个人资料
本站部分资源来源于网络,本站转载出于传递更多信息之目的,版权归原作者或者来源机构所有,如转载稿涉及版权问题,请联系我们。
Machine Learning in Action
Peter Harrington / Manning Publications / 2012-4-19 / GBP 29.99
It's been said that data is the new "dirt"—the raw material from which and on which you build the structures of the modern world. And like dirt, data can seem like a limitless, undifferentiated mass. ......一起来看看 《Machine Learning in Action》 这本书的介绍吧!