zoukankan      html  css  js  c++  java
  • 伪静态.htaccess的练习

     #开启重写引擎
    RewriteEngine on
    #配置重写规则
    RewriteRule  seven7/Index.html  seven7/index.php [L,NC]
    RewriteRule  test       seven7/test.php [L,NC]
    #RewriteRule index.html      seven7/1412phpB/20160914/index.php [L,NC]
    #分页的伪静态配置
    RewriteRule    (d+)_(.*)?.html           seven7/1412phpB/20160917/index.php?page=$1&sou=$2 [L,NC]
    RewriteRule    index.html           seven7/1412phpB/20160917/index.php  [L]
    #防盗链
    ReWriteCond  %{HTTP_REFERER} !^$    [NC]
    ReWriteCond  %{HTTP_REFERER} !http://www.study.com.*  [NC]
    #RewriteRule    .*.(jpeg|png|gif)$    -[F]
    RewriteRule    .*.(jpeg|png|gif|jpg)$     110.gif  [L]


    #容错处理,当访问不存在的页面时友好提示
    ReWriteCond  %{REQUEST_FILENAME} !-d
    ReWriteCond  %{REQUEST_FILENAME} !-f
    ReWriteRule  .*     404.html   [L]
  • 相关阅读:
    8常用控件
    7对话框
    6控件
    5Lambda表达式
    4自定义信号和槽函数
    3信号与槽
    2指定父对象
    springboot整合activemq
    springboot整合springtask
    jvm与tomcat启动优化配置
  • 原文地址:https://www.cnblogs.com/wepe/p/7424615.html
Copyright © 2011-2022 走看看