zoukankan      html  css  js  c++  java
  • PHP Apache 配置伪静态

    1、首先是开启rewrite_module(如何开启,百度搜索)

    2、创建.htaccess文件(如何创建,百度搜索)

    3、在.htaccess文件中打开重写服务:RewriteEngine On

    4、参考资料:

    # 修改以下语句中的 /supev 为你的播客目录地址,如果程序放在根目录中,请将 /supev
    修改为 /
    RewriteBase /supev
    # Rewrite 系统规则请勿修改 RewriteRule
    RewriteRule ^ivideo(-tv-([0-9]+))?(-ti-([0-9]+))?(-tc-([0-9]+))?(-page-([0-9]
    +))?.html$ ivideo.php?tv=$2&ti=$4&tc=$6&page=$8
    RewriteRule ^ispecial(-tv-([0-9]+))?(-ti-([0-9]+))?(-tc-([0-9]+))?(-page-([0-
    9]+))?.html$ ispecial.php?tv=$2&ti=$4&tc=$6&page=$8
    RewriteRule ^icategory.html$ icategory.php
    RewriteRule ^category-cid-([0-9]+)(-tag-([^-]*))?(-timelimit-([0-9]+))?(-
    orderlimit-([0-9]+))?(-page-([0-9]+))?.html$ category.php?
    cid=$1&tag=$3&timelimit=$5&orderlimit=$7&page=$9
    RewriteRule ^vspace-(mid|username)-(.+).html$ vspace.php?$1=$2
    RewriteRule ^video-(vid|ivid)-(.+).html$ video.php?$1=$2
    RewriteRule ^special-spid-([0-9]+).html$ special.php?spid=$1

  • 相关阅读:
    embed 与 object
    通道
    Silverlight 插件中的FindName方法使用
    RenderTransformOrigin 的作用
    Photoshop工具与绘图
    Silverlight动画
    VS2005 数据连接提示:该项不适于在指定状态下使用
    IIS6注册.net4.0
    .NET中的动态编译
    DevExpress换肤
  • 原文地址:https://www.cnblogs.com/subendong/p/3140258.html
Copyright © 2011-2022 走看看