Home > Backend Development > PHP Tutorial > 求apache设置伪静态时的重写规则,该如何处理

求apache设置伪静态时的重写规则,该如何处理

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
Release: 2016-06-13 10:08:08
Original
872 people have browsed it

求apache设置伪静态时的重写规则
将这个路径http://localhost/my/show.php?id=9重写成http://localhost/my/show/9
将这个路径http://localhost/my/index.php?type=1&curPage=1重写成
http://localhost/my/index.php/1/1

------解决方案--------------------
RewriteRule /shijing/(.*)/(.*)/(.*).html /morePicShow.php?pic_id=$1&sort_id=$2&house_id=$3 

看这个就明白了,
(.*) 对 $1 23 ..

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
Latest Issues
php - localhost shows 404
From 1970-01-01 08:00:00
0
0
0
php - localhost cannot access a certain folder
From 1970-01-01 08:00:00
0
0
0
localhost and 127.0.0.1
From 1970-01-01 08:00:00
0
0
0
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template