zoukankan      html  css  js  c++  java
  • 自动加WWW 301跳转等配置文件

    RewriteEngine on
    RewriteCond %{HTTP_HOST} ^yang.com [NC]
    RewriteRule ^(.*)$ http://www.yang.com/$1 [L,R=301]
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteRule ^(.*)$ index.php/$1 [L]

    # apache ,iis 伪静态规则
    RewriteRule ^(.*)/goods-([0-9]+)(-?)([0-9]*).html$ $1/goods/index/goods_id/$2/store_id/$4
    RewriteRule ^(.*)/groupbuy-([0-9]+)-([0-9]+).html$ $1/show_groupbuy/groupbuy_detail/group_id/$2/id/$3
    RewriteRule ^(.*)/article-([0-9]+).html$ $1/article/index/article_id/$2
    RewriteRule ^(.*)/store-([0-9]+).html$ $1/show_store/index/id/$2
    RewriteRule ^(.*)/store-([0-9]+)-([0-9]+).html$ $1/show_store/index/id/$2/mfid/$3
    RewriteRule ^(.*)/activity-([0-9]+)-([0-9]*).html$ $1/activity/index/activity_id/$2/nav_id/$3
    RewriteRule ^(.*)/store_nav-([0-9]+)-([0-9]+).html$ $1/show_store/index/id/$2/article/$3
    RewriteRule ^(.*)/document-([a-zA-Z_]+).html$ $1/document/index/code/$2
    RewriteRule ^(.*)/coupon_info-([0-9]+)-([0-9]+).html$ $1/coupon_store/detail/coupon_id/$2/id/$3
  • 相关阅读:
    C#函数参数前的修饰符
    C#正则表达式简单案例解析
    C#正则表达式
    C#反射Reflection
    C#事件
    C#委托的使用
    无法解析主机报错
    SparkStreaming对接rabbitMQ
    load文件到hive,并保存
    kafka模式对比
  • 原文地址:https://www.cnblogs.com/linewman/p/9918800.html
Copyright © 2011-2022 走看看