最新文章:

首页 实用教程

风云会wap建站程序Apache和Nginx伪静态规则

发布时间:2024年04月02日 评论数:抢沙发 阅读数:152

    Apache伪静态
    RewriteEngine On
    RewriteBase
    RewriteRule ^forum,index\.html$ forum.php\?index
    RewriteRule ^forum,forum,(\d+),(\d+),(\d+),(\d+),(\d+),(\d+),(\d+),(\d+)\.html$ forum.php\?forum&id=$2&from_bid=$5
    RewriteRule ^forum_forum_(\d+)_(\d+)_(\d+)_(\d+)_(\d+)_(\d+)_(\d+)_(\d+)\.html$ forum.php\?forum&id=$2&from_bid=$5
    RewriteRule ^SiteMap\.html$ sitemap.php
    RewriteRule ^sitemap\.html$ sitemap.php
    Nginx伪静态
    rewrite ^/forum,index\.html$ /forum.php?index last;
    rewrite ^/forum,forum,(\d+),(\d+),(\d+),(\d+),(\d+),(\d+),(\d+),(\d+)\.html$ /forum.php?forum&id=$2&from_bid=$5 last;
    rewrite ^/forum_forum_(\d+)_(\d+)_(\d+)_(\d+)_(\d+)_(\d+)_(\d+)_(\d+)\.html$ /forum.php?forum&id=$2&from_bid=$5 last;
    rewrite ^/SiteMap\.html$ /sitemap.php last;
    rewrite ^/sitemap\.html$ /sitemap.php last;
本文作者:伤痕磊磊 文章标题: 风云会wap建站程序Apache和Nginx伪静态规则
本文地址:https://leilei.me/25.html
版权声明:內容出自于原创和网络, 版权归原作者所有。



验 证 码: