php .htaccess 伪静态_PHP教程

WBOY
发布: 2016-07-14 10:10:11
原创
852 人浏览过

print?# 
#以下是网站伪静态正则 

RewriteEngine On 
RewriteRule ^index.html$ index.php 
RewriteRule ^about.html$ about.php 
RewriteRule ^about_([0-9]+).html$ about.php?id=$1 
RewriteRule ^contact.html$ contact.php 
RewriteRule ^service.html$ service.php 
RewriteRule ^case.html$ case.php 
RewriteRule ^case_([0-9]+).html$ case.php?fid=$1 
RewriteRule ^case_show_([0-9]+).html$ case_show.php?id=$1 
RewriteRule ^wenda.html$ wenda.php 
RewriteRule ^wenda_show_([0-9]+).html$ wenda_show.php?id=$1 
RewriteRule ^interact.html$ interact.php 
RewriteRule ^interact_show_([0-9]+).html$ interact_show.php?id=$1 
RewriteRule ^news.html$ news.php 
RewriteRule ^news_([0-9]+).html$ news.php?fid=$1 
RewriteRule ^news_show_([0-9]+).html$ news_show.php?id=$1 
RewriteRule ^news_page([[0-9]+).html$ news.php?page=$1 
RewriteRule ^news_fid([[0-9]+)_page([[0-9]+).html$ news.php?fid=$1&page=$2 
RewriteRule ^wenti_([0-9]+).html$ wenti.php?fid=$1 
RewriteRule ^wenti_show_([0-9]+).html$ wenti_show.php?id=$1 
RewriteRule ^wenti_fid([[0-9]+)_page([[0-9]+).html$ wenti.php?fid=$1&page=$2 
RewriteRule ^zhuanjia_([0-9]+).html$ zhuanjia.php?fid=$1 
RewriteRule ^zhuanjia_show_([0-9]+).html$ zhuanjia_show.php?id=$1 
RewriteRule ^product.html$ product.php 
RewriteRule ^product_([0-9]+).html$ product.php?fid=$1 
RewriteRule ^product_show_([0-9]+).html$ product_show.php?id=$1 
RewriteRule ^product_page([[0-9]+).html$ product.php?page=$1 
RewriteRule ^service_page([[0-9]+).html$ service.php?page=$1 
RewriteRule ^interact_page([[0-9]+).html$ interact.php?page=$1 
RewriteRule ^wenda_page([[0-9]+).html$ wenda.php?page=$1 
RewriteRule ^zhuanjia_fid([[0-9]+)_page([[0-9]+).html$ zhuanjia.php?fid=$1&page=$2 
RewriteRule ^save_action_([a-z]+).html$ save.php?action=$1 

#
#以下是网站伪静态正则
#
RewriteEngine On
RewriteRule ^index.html$ index.php
RewriteRule ^about.html$ about.php
RewriteRule ^about_([0-9]+).html$ about.php?id=$1
RewriteRule ^contact.html$ contact.php
RewriteRule ^service.html$ service.php
RewriteRule ^case.html$ case.php
RewriteRule ^case_([0-9]+).html$ case.php?fid=$1
RewriteRule ^case_show_([0-9]+).html$ case_show.php?id=$1
RewriteRule ^wenda.html$ wenda.php
RewriteRule ^wenda_show_([0-9]+).html$ wenda_show.php?id=$1
RewriteRule ^interact.html$ interact.php
RewriteRule ^interact_show_([0-9]+).html$ interact_show.php?id=$1
RewriteRule ^news.html$ news.php
RewriteRule ^news_([0-9]+).html$ news.php?fid=$1
RewriteRule ^news_show_([0-9]+).html$ news_show.php?id=$1
RewriteRule ^news_page([[0-9]+).html$ news.php?page=$1
RewriteRule ^news_fid([[0-9]+)_page([[0-9]+).html$ news.php?fid=$1&page=$2
RewriteRule ^wenti_([0-9]+).html$ wenti.php?fid=$1
RewriteRule ^wenti_show_([0-9]+).html$ wenti_show.php?id=$1
RewriteRule ^wenti_fid([[0-9]+)_page([[0-9]+).html$ wenti.php?fid=$1&page=$2
RewriteRule ^zhuanjia_([0-9]+).html$ zhuanjia.php?fid=$1
RewriteRule ^zhuanjia_show_([0-9]+).html$ zhuanjia_show.php?id=$1
RewriteRule ^product.html$ product.php
RewriteRule ^product_([0-9]+).html$ product.php?fid=$1
RewriteRule ^product_show_([0-9]+).html$ product_show.php?id=$1
RewriteRule ^product_page([[0-9]+).html$ product.php?page=$1
RewriteRule ^service_page([[0-9]+).html$ service.php?page=$1
RewriteRule ^interact_page([[0-9]+).html$ interact.php?page=$1
RewriteRule ^wenda_page([[0-9]+).html$ wenda.php?page=$1
RewriteRule ^zhuanjia_fid([[0-9]+)_page([[0-9]+).html$ zhuanjia.php?fid=$1&page=$2
RewriteRule ^save_action_([a-z]+).html$ save.php?action=$1

 

www.bkjia.comtruehttp://www.bkjia.com/PHPjc/477544.htmlTechArticleprint?# #以下是网站伪静态正则 # RewriteEngine On RewriteRule ^index.html$ index.php RewriteRule ^about.html$ about.php RewriteRule ^about_([0-9]+).html$ about.php?id=$1 R...
相关标签:
来源:php.cn
本站声明
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系admin@php.cn
热门教程
更多>
最新下载
更多>
网站特效
网站源码
网站素材
前端模板
关于我们 免责声明 Sitemap
PHP中文网:公益在线PHP培训,帮助PHP学习者快速成长!