url中不显示html后缀

WBOY
Release: 2016-06-06 20:44:14
Original
1927 people have browsed it

如何才能把网页地址输出为
http://ab.cc/asdf
而不是
http://ab.cc/asdf.html

我是新手

很新很新的,老板逼我学习~~~

回复内容:

如何才能把网页地址输出为
http://ab.cc/asdf
而不是
http://ab.cc/asdf.html

我是新手

很新很新的,老板逼我学习~~~

重写路由规则,方式有很多种。例如:
1、自己在入口文件中建立自己的路由规则;
2、在站点根目录下 .htaccess文件下实现路由重写;
3、在配置虚拟主机时,配置路由规则。
......

配置apache服务器的rewrite规则。

就是修改htaccess文件,重写规则。

你这个需求就是地址重写。剩下的网上搜索吧

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template