服务器
yaoleic
1014214039
展开
-
安装php和apache
安装php和apache1. 下载apache 和所需要的包yum install expat-develApache24http://httpd.apache.org/download.cgi#apache24APR && APR util Unix Source: apr-1.6.2.tar.gz [PGP] [MD5] Unix Source: apr-util-1.6.0....原创 2018-03-27 10:30:57 · 178 阅读 · 0 评论 -
Thinkphp5隐藏index.php
隐藏index.php 可以去掉URL地址里面的入口文件index.php,但是需要额外配置WEB服务器的重写规则。 以Apache为例,需要在入口文件的同级添加.htaccess文件(官方默认自带了该文件),内容如下: <IfModule mod_rewrite.c> Options +FollowSymlinks -Multiviews RewriteEngine on R...原创 2018-08-14 09:55:39 · 317 阅读 · 0 评论 -
apache url路由配置重写
1.Apache Rewrite的主要功能 就是实现URL的跳转和隐藏真实地址,基于Perl语言的正则表达式规范。平时帮助我们实现拟静态,拟目录,域名跳转,防止盗链等 2.Apache Rewrite的配置 Apache下的Rewrite配置主要有两种,一种是针对整个apache服务器的配置,此种配置的Rewrite规则是直接在httpd.conf下书写。配置步骤如下: (1)去除htt...转载 2018-08-12 17:25:32 · 682 阅读 · 0 评论