標題:
[電腦網絡]
iis 7.5 DISCUZ URL Rewrite
[打印本頁]
作者:
SV
時間:
2011-5-14 18:02
標題:
iis 7.5 DISCUZ URL Rewrite
RewriteEngine On
下面是 discuz 偽靜態
RewriteRule ^archiver/((fid|tid)-[\w\-]+\.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 ^space-(username|uid)-(.+)\.html$ space.php?$1=$2
RewriteRule ^tag-(.+)\.html$ tag.php?name=$1
下面是 IIS7.5 圖片防外連(包括通過子域名)
RewriteCond %{HTTP_REFERER} !^$
RewriteCond %{HTTP_REFERER} !^http(s)?://(.*)\.?amigobbs.net [NC]
RewriteRule \.(jpg|jpeg|png|gif)$ - [NC,F,L]
歡迎光臨 AMIGOBBS 論壇 (暫停運作) (http://amigobbs.com/)
Powered by Discuz! 6.0.0