mymps5.5 伪静态规则

作者: E星期五 分类: 网络备忘 发布时间: 2015-05-03 17:11 ė 11,074 次浏览 6 2条评论

Apache主机规则(.htaccess)
RewriteEngine On
RewriteBase /

RewriteRule ^space/(.+)\/$ space\.php\?user=$1

RewriteRule ^store-([0-9]+)\/$ store\.php\?uid=$1
RewriteRule ^store-([0-9]+)/([^\/]+).html$ store\.php\?uid=$1&Uid=$2

RewriteRule ^a/(.+)/$ a\/$1\/index.html
RewriteRule ^(?!\m\b)([^\/]+)/$ category\.php\?Catid=$1
RewriteRule ^category-([^\/]+)\.html$ category\.php\?CAtid=$1
RewriteRule ^([^\/]+)/([0-9]+)\.html$ information\.php\?id=$2
RewriteRule ^information-id-([0-9]+)\.html$ information\.php\?id=$1

RewriteRule ^news\.html$ news\.php
RewriteRule ^news-id-([0-9]+)\.html$ news\.php\?id=$1
RewriteRule ^news-catid-([0-9]+)\.html$ news\.php\?catid=$1
RewriteRule ^news-catid-([0-9]+)-page-([0-9]+)\.html$ news\.php\?catid=$1&page=$2

RewriteRule ^corporation\.html$ corporation\.php
RewriteRule ^corporation-([^\/]+)\.html$ corporation\.php\?Catid=$1

RewriteRule ^aboutus\.html$ about\.php\?part=aboutus
RewriteRule ^sitemap\.html$ about\.php\?part=sitemap
RewriteRule ^aboutus-id-([0-9]+)\.html$ about\.php\?part=aboutus&id=$1
RewriteRule ^announce\.html$ about\.php\?part=announce&id=$1
RewriteRule ^faq\.html$ about\.php\?part=faq
RewriteRule ^faq-id-([0-9]+)\.html$ about\.php\?part=faq&id=$1
RewriteRule ^friendlink\.html$ about\.php\?part=friendlink

本文出自E星期五的博客,转载时请注明出处及相应链接。

本文永久链接: https://exqw.com/archives/371.html

0

2 条评论

  1. 李生 2018 年 1 月 11 日 星期四 15:10 下午 3:10 回复

    麻烦提供下mymps5.8se的伪静态规则,谢谢,发邮箱吧

    1. E星期五 2018 年 1 月 25 日 星期四 10:48 上午 10:48 回复

      http://exqw.com/archives/777.html

发表回复

您的邮箱地址不会被公开。 必填项已用 * 标注

此站点使用Akismet来减少垃圾评论。了解我们如何处理您的评论数据

Ɣ回顶部