本地多端口多站点伪静态如何配置?

WBOY
Release: 2016-06-23 14:20:40
Original
1054 people have browsed it

不是80端口如何写?


回复讨论(解决方案)

分别放置.htaccess解决了,今天一天都去了解伪静态了
RewriteRule ^p([0-9]?)\.html$ list.php?parent_id=$1
其实我想这么写的,结果发现不行。
RewriteRule ^a\.html\?p=([0-9]?)$ list.php?parent_id=$1

好了,解决了,来个人接分.

在apache配置文件里面监听你自己需要的端口,比如listen 8000 ,端口一般会自己的取值范围,然后配置自己的虚拟主机并指向自己的项目目录,访问时可用本地ip:端口访问,比如192.168.10.1:8000,不明白的话可百度apache虚拟主机配置

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
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!