• 自动加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
  • 相关阅读:
    流体布局、响应式布局
    CSS
    表格的合并
    HTML
    http请求与响应
    MySQL存储引擎
    MySQL之索引以及正确使用索引
    MySQL之视图、触发器、存储过程、函数、事务、数据库锁
    MySQL之正则表达式
    MySQL练习题
  • 原文地址:https://www.cnblogs.com/linewman/p/9918800.html
Copyright © 2020-2023  润新知