mymps5.8se的伪静态规则

作者: E星期五 分类: 源码 发布时间: 2018-01-25 10:48 ė 1414 次浏览 6 没有评论

RewriteEngine On
RewriteBase /

#如果是二级域名,删除下面2行的# 注释
#RewriteCond Host: ([a-z]+)\.aaa\.com
#RewriteRule ^(.*) /$1/$2

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
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(?!store|space)(.+)/$ category\.php\?Catid=$1
RewriteRule ^([^\/]+)/([0-9]+)\.html$ information\.php\?id=$2
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 ^goods\.html$ goods\.php
RewriteRule ^goods-id-([0-9]+)\.html$ goods\.php\?id=$1
RewriteRule ^goods-([^\/]+)\.html$ goods\.php\?Catid=$1
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/777.html

0

发表回复

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

这个站点使用 Akismet 来减少垃圾评论。了解你的评论数据如何被处理

Ɣ回顶部