RSS
热门关键字:  下载  cms  模版  开源  dedecms
当前位置 :| 主页 > 站长学院 > 服务器 >

UrlRewrite

来源:互连网 作者:佚名 时间:2005-10-23 Tag: 点击:
<VirtualHost *:88>
ServerAdmin btbtd@yahoo.com.cn
DocumentRoot "I:/gi-2288"
ServerName gi.2288.org
ErrorLog "G:/Apache/dummy-host.example.com-error_log"

RewriteEngine On

# News Modules
RewriteRule /modules/news/topic_(.+)\.html$ /modules/news/index.php?storytopic=$1 [L]
RewriteRule /modules/news/article_([0-9]+).html$ /modules/news/article.php?storyid=$1
RewriteRule /modules/news/archive/([0-9]+)/([0-9]+)$ /modules/news/archive.php?year=$1&month=$1 [L]
RewriteRule /modules/news/archive\.html$ /modules/news/archive.php
RewriteRule /modules/news/index.html$ /modules/news/index.php


# Wfdownloads Modules
RewriteRule /modules/wfdownloads/topic_(.+)\.html$ /modules/wfdownloads/viewcat.php?cid=$1 [L]
RewriteRule /modules/wfdownloads/down_item_(.+)_file_(.+)\.html$ /modules/wfdownloads/singlefile.php?cid=$1&lid=$1
RewriteRule /modules/wfdownloads/topic_o_(.+)\.html$ /modules/wfdownloads/viewcat.php?op=&cid=$1 [L]
RewriteRule /modules/wfdownloads/newlist\.html$ /modules/wfdownloads/newlist.php
RewriteRule /modules/wfdownloads/hit\.html$ /modules/wfdownloads/topten.php?list=hit
RewriteRule /modules/wfdownloads/rate\.html$ /modules/wfdownloads/topten.php?list=rate
RewriteRule /modules/wfdownloads/index.html$ /modules/wfdownloads/index.php


# Mydownloads Modules
RewriteRule /modules/mydownloads/index.html$ /modules/mydownloads/index.php
RewriteRule /modules/mydownloads/topic_(.+)\.html$ /modules/mydownloads/viewcat.php?cid=$1 [L]
RewriteRule /modules/mydownloads/hit/(.+)\.html$ /modules/mydownloads/topten.php?hit=$1 [L]
RewriteRule /modules/mydownloads/rate/(.+)\.html$ /modules/mydownloads/topten.php?rate=$1 [L]


# MyAlbum
RewriteRule /modules/myalbum/index.html$ /modules/myalbum/index.php
RewriteRule /modules/myalbum/topic_(.+)\.html$ /modules/myalbum/viewcat.php?cid=$1 [L]
RewriteRule /modules/myalbum/topic_(.+)_photo_(.+)\.html$ /modules/myalbum/viewcat.php?num=$1&cid=$1
RewriteRule /modules/myalbum/hit/(.+)\.html$ /modules/myalbum/topten.php?hit=1


# AMS
RewriteRule /modules/AMS/index.html$ /modules/AMS/index.php
RewriteRule /modules/AMS/article_(.+)\.html$ /modules/AMS/article.php?storyid=$1
RewriteRule /modules/AMS/topic_(.+)\.html$ /modules/AMS/index.php?storytopic=$1


#Other
RewriteRule /index.html$ /index.php


 


</VirtualHost>


 


News Modules
http://gi.2288.org:88/modules/news/index.php?storytopic=2
http://gi.2288.org:88/modules/news/topic_2.html

http://gi.2288.org:88/modules/news/article.php?storyid=281
http://gi.2288.org:88/modules/news/article_281.html

http://gi.2288.org:88/modules/news/index.php
http://gi.2288.org:88/modules/news/index.html



wfdownloads
http://gi.2288.org:88/modules/wfdownloads/viewcat.php?cid=18
http://gi.2288.org:88/modules/wfdownloads/topic_18.html

http://gi.2288.org:88/modules/wfdownloads/singlefile.php?cid=4&lid=16
http://gi.2288.org:88/modules/wfdownloads/down_item_4_file_16.html

http://gi.2288.org:88/modules/wfdownloads/viewcat.php?op=&cid=19
http://gi.2288.org:88/modules/wfdownloads/topic_o_19.html

http://gi.2288.org:88/modules/wfdownloads/newlist.php
http://gi.2288.org:88/modules/wfdownloads/newlist.html

http://gi.2288.org:88/modules/wfdownloads/topten.php?list=hit
http://gi.2288.org:88/modules/wfdownloads/hit.html

http://gi.2288.org:88/modules/wfdownloads/topten.php?list=rate
http://gi.2288.org:88/modules/wfdownloads/rate.html

http://gi.2288.org:88/modules/mydownloads/index.php
http://gi.2288.org:88/modules/mydownloads/index.html



mydownloads
http://gi.2288.org:88/modules/mydownloads/index.php
http://gi.2288.org:88/modules/mydownloads/index.html

http://gi.2288.org:88/modules/mydownloads/viewcat.php?cid=3
http://gi.2288.org:88/modules/mydownloads/topic_3.html

http://gi.2288.org:88/modules/mydownloads/topten.php?hit=1
http://gi.2288.org:88/modules/mydownloads/hit/1.html



myAlbum
http://gi.2288.org:88/modules/myalbum/index.php
http://gi.2288.org:88/modules/myalbum/index.html

http://gi.2288.org:88/modules/myalbum/viewcat.php?cid=41
http://gi.2288.org:88/modules/myalbum/topic_41.html

http://gi.2288.org:88/modules/myalbum/viewcat.php?num=20&cid=78
http://gi.2288.org:88/modules/myalbum/topic_20_photo_78.html



AMS
http://gi.2288.org:88/modules/AMS/index.php
http://gi.2288.org:88/modules/AMS/index.html

http://gi.2288.org:88/modules/AMS/article.php?storyid=42
http://gi.2288.org:88/modules/AMS/article_42.html

http://gi.2288.org:88/modules/AMS/index.php?storytopic=2
http://gi.2288.org:88/modules/AMS/topic_2.html

最新评论共有 0 位网友发表了评论
发表评论
评论内容:不能超过250字,需审核,请自觉遵守互联网相关政策法规。
用户名: 密码:
匿名?
注册
热点关注
相关文章