#
#以下是网站伪静态正则
#
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

php .htaccess 伪静态的更多相关文章

  1. .htaccess伪静态(URL重写)绑定域名到子目录实现子站点

    Apache主机一般支持.htaccess伪静态,即可以实现绑定域名到子目录.一个空间多个站点. 应用举例:绑定htaccess.800m.net到htaccess目录 根目录下.htaccess内容 ...

  2. nginx上支持.htaccess伪静态的配置实例

    本文介绍下,在nginx上配置.htaccess伪静态的方法,有需要的朋友参考下吧. 在apache上.htaccess转向,只要apache编译的时候指明支持rewrite模块即可. 但是换到ngi ...

  3. apache上.htaccess转向nginx上配置.htaccess伪静态规则

    nginx上配置.htaccess伪静态规则 在apache上.htaccess转向,只要apache编译的时候指明支持rewrite模块即可. 但是换到nginx上方法会有不同,有人说把.htacc ...

  4. Linux启动Apache支持.htaccess伪静态文件方法

    第一.编辑httpd.conf文件 A - 在etc/httpd/conf/目录下的httpd.conf 文件,找到: LoadModule rewrite_module modules/mod_re ...

  5. nginx上如何支持.htaccess伪静态转向

    我们知道在apache上有一个常用的功能.htaccess转向,只要apache编译的时候指明支持rewrite模块就可以了. 但是换到nginx上方法会有一点不一样,网上很多人说把.htaccess ...

  6. linux网站配置文件.htaccess伪静态转换到IIS web.config中

    linux下的php网站放到Windows服务器IIS下.htaccess文件伪静态规则转换.   此办法只适合于linux下的php网站放到Windows服务器IIS下,网站除了主页面正常以外子页面 ...

  7. 如何在windows下Apache环境开启htaccess伪静态功能

     以下文章来自于网络,只做学习用 很多国人习惯用windows服务器或者在windows系统下调试PHP程序,在调试货使用的时候就遇到开启伪静态的各种问题,今天在网络上搜集了一些开启伪静态需要注意 ...

  8. htaccess 伪静态的规则

    利用htaccess文件可以很好的进行站点伪静态,并且形成的目标地址与真正的静态页面几乎一模一样,如abc.html等,伪静态可以非常好的结合SEO来提高站点的排名,并且也能给人一种稳定的印象. 由于 ...

  9. Apache环境.htaccess伪静态301跳转(www与不带www)

    一般而言,我们使用的301跳转就是WWW与不带WWW域名之间的跳转,用行话说就是权重要归一.对于我们使用Apache环境的来说其实相对nginx比较简单,因为只需要我们在网站根目录有.htaccess ...

  10. apache .htaccess 伪静态重定向,防盗链 限制下载...

    301全站跳转 RewriteEngine OnRewriteCond %{HTTP_HOST} ^www\.old\.net$ [NC]RewriteRule ^(.*)$ http://www.n ...

随机推荐

  1. js 模仿jquery 写个简单的小demo

    <div id="div" style="background:red;width:100px;height:300px"> 123123123 & ...

  2. permutohedral lattice理解

    [完结]saliency filters精读之permutohedral lattice 2012年09月28日 22:40:08 工长山 阅读数:12432    版权声明:本文为博主原创文章,未经 ...

  3. 使用git创建与合并分支

    一.概述 学会使用git命令对项目进行创建分支,并在创建结束后合并到主分支上. 问:为什么要创建分支? 答:在原来的分支上创建一个自己的分支进行开发,在开发完毕后一次性合并到原先的分支,这样既保证安全 ...

  4. SpringBoot 全配置(推荐收藏)

    # =================================================================== # COMMON SPRING BOOT PROPERTIE ...

  5. Python sqlite3操作笔记

    创建数据库 def create_tables(dbname): conn = sqlite3.connect(dbname) print "Opened database successf ...

  6. 谈一谈 MPU6050 姿态融合(转)

    姿态角(Euler角)pitch yaw roll飞行器的姿态角并不是指哪个角度,是三个角度的统称.它们是:俯仰.滚转.偏航.你可以想象是飞机围绕XYZ三个轴分别转动形成的夹角. 地面坐标系(eart ...

  7. linux软链接的创建、删除和更新

    大家都知道,有的时候,我们为了省下空间,都会使用链接的方式来进行引用操作.同样的,在系统级别也有.在Windows系列中,我们称其为快捷方式,在Linux中我们称其为链接(基本上都差不多了,其中可能有 ...

  8. template.js artTemplate 简洁语法官网下载不了 template.js artTemplate 新下载地址

    参考:https://blog.csdn.net/tavatimsa/article/details/82019792

  9. SSO(singlesignon)单点登录

    技术实现机制: 当用户第一次访问应用系统1的时候,因为还没有登录,会被引导到认证系统中进行登录:根据用户提供的登录信息,认证系统进行身份效验,如果通过效验,应该返回给用户一个认证的凭据--ticket ...

  10. background-color:transparent

    background-color没有none值   在工作中发现, 这样是没反应的, 要写这个样式才能去掉背景颜色() background-color属性详细链接: http://www.w3sch ...