E星期五,一个心情日记和分享记录的博客

mymps5.5 伪静态规则

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

2 Comments

  1. 李生

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

发表回复

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

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

© 2025 E星期五的博客

Theme by Anders NorenUp ↑