Home >Backend Development >PHP Tutorial >本地多端口多站点伪静态如何配置?

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

WBOY
WBOYOriginal
2016-06-23 14:20:401124browse

不是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虚拟主机配置

Statement:
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
Previous article:phpmailer 邮件组发邮件Next article:制作多边形div