tszm


disconnected
主题工具

关于这个论坛的一些技术问题...

... 发表于 2006-12-11 14:40  ... 21571 次点击

请问你这个 discuz 中的 search engine friendly url, Apache 里要如何设定呢?


本主题共有 1 条回复 | 回到顶部
#1 - 2006-12-12 21:55
Sai 桂林

RewriteEngine on
RewriteBase /bbs

RewriteRule ^archiver/([a-z0-9\-]+\.html)$ archiver/index.php?$1
RewriteRule ^forum-([0-9]+)-([0-9]+)\.html$ forumdisplay.php?fid=$1&page=$2
RewriteRule ^thread-([0-9]+)-([0-9]+)-([0-9]+)\.html$ viewthread.php?tid=$1&extra=page\%3D$3&page=$2
RewriteRule ^profile-(username|uid)-(.*)\.html$ viewpro.php?$1=$2
RewriteRule ^music-([0-9]+)-([a-z0-9\-]+)\.html$ music.php?tid=$1&sv=$2
RewriteRule ^u-(.*)\.html$ viewpro.php?uid=$1

RewriteRule ^u/(.*)$ viewpro.php?uid=$1
RewriteRule ^thread/([0-9]+)/([0-9]+)/([0-9]+)$ viewthread.php?tid=$1&extra=page\%3D$3&page=$2
RewriteRule ^forum/([0-9]+)/([0-9]+)$ forumdisplay.php?fid=$1&page=$2

RewriteRule ^u/(username|uid)/(.*)$ viewpro.php?$1=$2
RewriteRule ^forum/([0-9]+)/([0-9]+)$ forumdisplay.php?fid=$1&page=$2

RewriteRule ^newthread-([0-9]+)-([0-9]+)\.html$ post.php?action=newthread&fid=$1&extra=page%3D$2
RewriteRule ^reply-([0-9]+)-([0-9]+)-([0-9]+)\.html$ post.php?action=reply&fid=$1&tid=$2&extra=page%3D$3
RewriteRule ^redirect-([0-9]+)\.html$ redirect.php?tid=$1&goto=lastpost#lastpost
RewriteRule ^next-([0-9]+)-([0-9]+)\.html$ redirect.php?fid=$1&tid=$2&goto=nextoldset
RewriteRule ^pre-([0-9]+)-([0-9]+)\.html$ redirect.php?fid=$1&tid=$2&goto=nextnewset
RewriteRule ^fav-([0-9]+)\.html$ memcp.php?action=favorites&favadd=$1
RewriteRule ^cat-([0-9]+)\.html$ index.php?gid=$1
RewriteRule ^blog-([0-9]+)\.html$ blog.php?uid=$1
RewriteRule ^mytopic-([0-9]+)\.html$ search.php?srchuid=$1&mytopics=yes&searchsubmit=yes
RewriteRule ^fresh-([0-9]+)\.html$ search.php?srchfrom=$1&searchsubmit=yes

RewriteRule ^online.html$ member.php?action=online
RewriteRule ^member.html$ member.php?action=list
RewriteRule ^new_features.html$ new_features.php

RewriteRule ^passwd.nnm$ member.php?action=lostpasswd
RewriteRule ^login.nnm$ logging.php?action=login
RewriteRule ^signup.nnm$ register.php
RewriteRule ^digest.nnm$ digest.php
RewriteRule ^logout.nnm$ logging.php?action=logout
RewriteRule ^memcp.nnm$ memcp.php
RewriteRule ^pm.nnm$ pm.php
RewriteRule ^search.nnm$ search.php
RewriteRule ^favorite.nnm$ memcp.php?action=favorites
RewriteRule ^mark.nnm$ member.php?action=markread
RewriteRule ^rules.nnm$ faq.php?page=custom#0
RewriteRule ^terms.nnm$ faq.php?page=custom#0

看完之后有话想说?那就帮楼主加盖一层吧!

在回复之前你需要先进行登录
用户名 / UID
密码
Project Parasynthesis | Based on Discuz! 5.5.0 | Thanks to Livid
About | Help | Developer | N2Design
清除 Cookies - 联系我们 - 无名杂志 - Archiver - Mobile
Processed in 0.035823 second(s), 9 queries, Gzip enabled