鸿 网 互 联 www.68idc.cn

XoopsURLRewrite错误修正+加强

来源:互联网 作者:佚名 时间:2016-04-08 07:55
VirtualHost *:88 ServerAdmin btbtd@yaho DocumentRoot "I:/gi-2288" ServerName g ErrorLog "G:/Apache/dummy-g.88-error_log" UseCanonicalName Off Alias /document "J:/Document/" Directory "J:/Document/" Options FollowSymLinks AllowOverride all
<VirtualHost *:88>
ServerAdmin btbtd@yaho
DocumentRoot "I:/gi-2288"
ServerName g
ErrorLog "G:/Apache/dummy-g.88-error_log"
UseCanonicalName Off Alias /document "J:/Document/"
<Directory "J:/Document/">
Options FollowSymLinks
AllowOverride all
Order allow,deny
Allow from all
</Directory>

Alias /forum "J:/forum/"
<Directory "J:/forum/">
Options FollowSymLinks
AllowOverride all
Order allow,deny
Allow from all
</Directory>

Alias /color-scheme "J:/color-scheme/"
<Directory "J:/color-scheme/">
Options FollowSymLinks
AllowOverride all
Order allow,deny
Allow from all
</Directory>


Alias /pro "J:/pro/"
<Directory "J:/pro">
Options FollowSymLinks
AllowOverride all
Order allow,deny
Allow from all
</Directory>




Alias /t "J:/Test/"
<Directory "J:/Test/">
Options all
AllowOverride all
Order allow,deny
Allow from all
</Directory>

Alias /article "J:/article/"
<Directory "J:/article/">
Options all
AllowOverride all
Order allow,deny
Allow from all
</Directory>

RewriteEngine On



# --------------------News Modules
RewriteRule /modules/news/topic_(.*)$ /modules/news/index.php?storytopic=$1
#


RewriteRule /modules/news/article_(.*)$ /modules/news/article.php?storyid=$1
#

RewriteRule /modules/news/topic(.*)-(.*)$ /modules/news/index.php?storytopic=$1&start=$2
#

RewriteRule /modules/news/$ /modules/news/archive.php
#

RewriteRule /modules/news/$ /modules/news/index.php
#




# --------------------Wfdownloads Modules
RewriteRule /modules/wfdownloads/topic_(.*)$ /modules/wfdownloads/viewcat.php?cid=$1
#
#

RewriteRule /modules/wfdownloads/topic_o_(.*)$ /modules/wfdownloads/viewcat.php?op=&cid=$1
#


RewriteRule /modules/wfdownloads/$ /modules/wfdownloads/newlist.php
#


RewriteRule /modules/wfdownloads/list_(.*)$ /modules/wfdownloads/topten.php?list=$1
#


RewriteRule /modules/wfdownloads/$ /modules/wfdownloads/index.php
#


RewriteRule /modules/wfdownloads/down(.*)-(.*)$ /modules/wfdownloads/singlefile.php?cid=$1&lid=$2
#


RewriteRule /modules/wfdownloads/list_(.*)$ /modules/wfdownloads/viewcat.php?list=$1
#




# --------------------Mydownloads Modules
RewriteRule /modules/mydownloads/$ /modules/mydownloads/index.php
#

RewriteRule /modules/mydownloads/topic_(.*)$ /modules/mydownloads/viewcat.php?cid=$1
#

RewriteRule /modules/mydownloads/hit_(.*)$ /modules/mydownloads/topten.php?hit=$1
#

RewriteRule /modules/mydownloads/rate_(.*)$ /modules/mydownloads/topten.php?rate=$1
#

RewriteRule /modules/mydownloads/down(.*)-(.*)$ /modules/mydownloads/singlefile.php?cid=$1&lid=$2
#




# --------------------MyAlbum
RewriteRule /modules/myalbum/$ /modules/myalbum/index.php
#


RewriteRule /modules/myalbum/hit_(.*)$ /modules/myalbum/topten.php?hit=$1
#


RewriteRule /modules/myalbum/photo_(.*)$ /modules/myalbum/photo.php?lid=$1
#
#

RewriteRule /modules/myalbum/topic_(.*)$ /modules/myalbum/viewcat.php?cid=$1
#
#

RewriteRule /modules/myalbum/view(.*)-(.*)$ /modules/myalbum/viewcat.php?num=$1&cid=$2
#


RewriteRule /modules/myalbum/photo(.*)-(.*)$ /modules/myalbum/photo.php?lid=$1&cid=$2
# ;cid=34
#




# --------------------AMS
RewriteRule /modules/AMS/$ /modules/AMS/index.php
#

RewriteRule /modules/AMS/$ /modules/AMS/archive.php
#


RewriteRule /modules/AMS/article_(.*)$ /modules/AMS/article.php?storyid=$1
#
#

RewriteRule /modules/AMS/topic_(.*)$ /modules/AMS/index.php?storytopic=$1
#


RewriteRule /modules/AMS/archive(.*)-(.*)$ /modules/AMS/archive.php?year=$1&month=$2
#





# --------------------Booklist
RewriteRule /modules/booklists/$ /modules/booklists/index.php
#

RewriteRule /modules/booklists/$ /modules/booklists/faq.php
#

RewriteRule /modules/booklists/$ /modules/booklists/search.php
#

RewriteRule /modules/booklists/hit_(.*)$ /modules/booklists/topten.php?hit=$1
#

RewriteRule /modules/booklists/rate_(.*)$ /modules/booklists/topten.php?rate=$1
#

RewriteRule /modules/booklists/view(.*)$ /modules/booklists/viewcat.php?cid=$1
#

RewriteRule /modules/booklists/book(.*)-(.*)$ /modules/booklists/singlelink.php?cid=$1&lid=$2
#

RewriteRule /modules/booklists/viewbook-(.*)$ /modules/booklists/singlelink.php?lid=$1
#



# --------------------Xphpbbi
RewriteRule /modules/xphpbbi/$ /modules/xphpbbi/index.php
#

RewriteRule /modules/xphpbbi/viewforum_(.*)$ /modules/xphpbbi/viewforum.php?f=$1
#


RewriteRule /modules/xphpbbi/viewtopic_(.*)$ /modules/xphpbbi/viewtopic.php?t=$1
#


RewriteRule /modules/xphpbbi/viewtopic_post(.*)-(.*)-(.*)-(.*)-(.*)$ /modules/xphpbbi/viewtopic.php?t=$1&start=$2&postdays=$3&postorder=$4&highlight=$5

RewriteRule /modules/xphpbbi/viewtopic_o(.*)#(.*)$ /modules/xphpbbi/viewtopic.php?p=$1#$1
#


RewriteRule /modules/xphpbbi/n-(.*)$ /modules/xphpbbi/search.php?search_id=$1
#

RewriteRule /modules/xphpbbi/ego-(.*)$ /modules/xphpbbi/search.php?search_id=$1
#
#

RewriteRule /modules/xphpbbi/u-(.*)$ /modules/xphpbbi/search.php?search_id=$1
#
#

RewriteRule /modules/xphpbbi/index_(.*)$ /modules/xphpbbi/index.php?c=$1
#
#



# --------------------NewBB
RewriteRule /modules/newbb/$ /modules/newbb/index.php
#

RewriteRule /modules/newbb/$ /modules/newbb/viewall.php
#
#

RewriteRule /modules/newbb/$ /modules/newbb/post.php
#
#

RewriteRule /modules/newbb/$ /modules/newbb/search.php
#
#

RewriteRule /modules/newbb/forum_(.*)$ /modules/newbb/viewforum.php?forum=$1
#
#

RewriteRule /modules/newbb/viewtopic_id(.*)-(.*)$ /modules/newbb/viewtopic.php?topic_id=$1&forum=$2
# ;forum=5
#

RewriteRule /modules/newbb/topic_mode_(.*)-(.*)-(.*)$ /modules/newbb/viewtopic.php?viewmode=$1&topic_id=$2&forum=$3
# ;topic_id=111&forum=5
#

RewriteRule /modules/newbb/newtopic_(.*)-(.*)-(.*)-(.*)-(.*)-(.*)$ /modules/newbb/viewforum.php?start=$1&forum=$2&sortname=$3&sortorder=$4&sortsince=$5&type=$6
# ;forum=27&sortname=p.post_time&sortorder=DESC&sortsince=100&type=unread
#

RewriteRule /modules/newbb/digest_(.*)-(.*)-(.*)-(.*)-(.*)-(.*)$ /modules/newbb/viewforum.php?start=$1&forum=$2&sortname=$3&sortorder=$4&sortsince=$5&type=$6
# ;forum=27&sortname=p.post_time&sortorder=DESC&sortsince=100&type=digest
#

RewriteRule /modules/newbb/unreplied(.*)$ /modules/newbb/viewall.php?type=$1
#
#

RewriteRule /modules/newbb/topic_time_(.*)-(.*)-(.*)-(.*)-(.*)-(.*)$ /modules/newbb/viewtopic.php?viewmode=$1&order=$2&topic_id=$3&forum=$4&move=$5&topic_time=$6
# ;order=ASC&topic_id=111&forum=5&move=prev&topic_time=1105542643
#

RewriteRule /modules/newbb/forum-cat_(.*)$ /modules/newbb/index.php?cat=$1
#
#

RewriteRule /modules/newbb/newtopic_(.*)$ /modules/newbb/newtopic.php?forum=$1
#
#


RewriteRule /modules/newbb/view-newtopic_(.*)-(.*)$ /modules/newbb/viewtopic.php?topic_id=$1&start=$2
# ;start=0
#



# --------------------Ipb
RewriteRule /modules/ipboard/$ /modules/ipboard/index.php
#

RewriteRule /modules/ipboard/showtopic_(.*)-(.*)$ /modules/ipboard/index.php?showtopic=$1&s=$2
# ;s=8d88e79f2ec22ddc5c84d6414bf6c945
# tm

RewriteRule /modules/ipboard/showforum_(.*)-(.*)$ /modules/ipboard/index.php?showforum=$1&s=$2
# ;s=8d88e79f2ec22ddc5c84d6414bf6c945
# tm

RewriteRule /modules/ipboard/showforum_(.*)$ /modules/ipboard/index.php?showforum=$1
#
#

RewriteRule /modules/ipboard/showtopic_(.*)$ /modules/ipboard/index.php?showtopic=$1
#
#

RewriteRule /modules/ipboard/act_(.*)-(.*)$ /modules/ipboard/index.php?act=$1&c=$2
# ;c=4
#

RewriteRule /modules/ipboard/act-i_(.*)$ /modules/ipboard/index.php?act=$1
#
#



# --------------------Digest
RewriteRule /modules/digest/$ /modules/digest/index.php
#

RewriteRule /modules/digest/cid_(.*)$ /modules/digest/index.php?category_id=$1
#
#

RewriteRule /modules/digest/ud_(.*)-(.*)$ /modules/digest/index.php?op=$1&digest_id=$2
# ;digest_id=7
#

RewriteRule /modules/digest/ctid_(.*)$ /modules/digest/custom.php?category_id=$1
#
#

RewriteRule /modules/digest/u-ccid_(.*)$ /modules/digest/index.php?digest_id=$1
# ;
# ;

RewriteRule /modules/digest/u-cid_(.*)-(.*)$ /modules/digest/index.php?op=$1&category_id=$2
# ;category_id=4
#




# --------------------Wordbook
RewriteRule /modules/wordbook/$ /modules/wordbook/index.php
#

RewriteRule /modules/wordbook/$ /modules/wordbook/letter.php
#

RewriteRule /modules/wordbook/$ /modules/wordbook/category.php
#

RewriteRule /modules/wordbook/category_(.*)$ /modules/wordbook/category.php?categoryID=$1
#
#

RewriteRule /modules/wordbook/letter_(.*)$ /modules/wordbook/letter.php?init=$1
#
#

RewriteRule /modules/wordbook/entry_(.*)$ /modules/wordbook/entry.php?entryID=$1
#
#


# --------------------ghdb
RewriteRule /modules/ghdb/$ /modules/ghdb/index.php
#

RewriteRule /modules/ghdb/$ /modules/ghdb/letter.php
#


RewriteRule /modules/ghdb/$ /modules/ghdb/category.php
#


RewriteRule /modules/ghdb/category_(.*)$ /modules/ghdb/category.php?categoryID=$1
#
#

RewriteRule /modules/ghdb/letter_(.*)$ /modules/ghdb/letter.php?init=$1
#
#

RewriteRule /modules/ghdb/entry_(.*)$ /modules/ghdb/entry.php?entryID=$1
#
#





# --------------------Wordpress
RewriteRule /modules/wordpress/$ /modules/wordpress/index.php
#


RewriteRule /modules/wordpress/index_(.*)$ /modules/wordpress/index.php?p=$1
#
#

RewriteRule /modules/wordpress/cat_(.*)$ /modules/wordpress/index.php?cat=$1
#
#

RewriteRule /modules/wordpress/m_(.*)$ /modules/wordpress/index.php?m=$1
#
#

RewriteRule /modules/wordpress/author_(.*)$ /modules/wordpress/index.php?author=$1
#
#



# --------------------Flashgames
RewriteRule /modules/flashgames/$ /modules/flashgames/index.php
#


RewriteRule /modules/flashgames/$ /modules/flashgames/highscores.php
#


RewriteRule /modules/flashgames/hit_(.*)$ /modules/flashgames/topten.php?hit=$1
#
#

RewriteRule /modules/flashgames/rate_(.*)$ /modules/flashgames/topten.php?rate=$1
#
#

RewriteRule /modules/flashgames/cid_(.*)$ /modules/flashgames/viewcat.php?cid=$1
#
#

RewriteRule /modules/flashgames/lid_(.*)$ /modules/flashgames/game.php?lid=$1
#
#



# --------------------Mylinks
RewriteRule /modules/mylinks/$ /modules/mylinks/index.php
#


RewriteRule /modules/mylinks/$ /modules/mylinks/submit.php
#


RewriteRule /modules/mylinks/hit_(.*)$ /modules/mylinks/topten.php?hit=$1
#
#

RewriteRule /modules/mylinks/rate_(.*)$ /modules/mylinks/topten.php?rate=$1
#
#

RewriteRule /modules/mylinks/cid_(.*)$ /modules/mylinks/viewcat.php?cid=$1
#
#

RewriteRule /modules/mylinks/visit_(.*)-(.*)$ /modules/mylinks/visit.php?cid=$1&lid=$2
# ;lid=14
#



# --------------------XMLine
RewriteRule /modules/xmline/$ /modules/xmline/index.php
#


RewriteRule /modules/xmline/cid_(.*)$ /modules/xmline/index.php?category_id=$1
#
#

RewriteRule /modules/xmline/o-item_(.*)$ /modules/xmline/item.php?digest_id=$1
#
#

RewriteRule /modules/xmline/d-(.*)-(.*)$ /modules/xmline/index.php?op=$1&digest_id=$2
# ;digest_id=40
#

RewriteRule /modules/xmline/c-cid_(.*)$ /modules/xmline/custom.php?category_id=$1
#
#

RewriteRule /modules/xmline/u-ccid_(.*)$ /modules/xmline/index.php?digest_id=$1
# ;
#

RewriteRule /modules/xmline/ua-cid_(.*)-(.*)$ /modules/xmline/index.php?op=$1&category_id=$2
#






# --------------------lykos_syndication
RewriteRule /modules/lykos_syndication/$ /modules/lykos_syndication/index.php
#





# --------------------Dictionary
RewriteRule /modules/dictionary/$ /modules/dictionary/index.php
#


RewriteRule /modules/dictionary/dictionary_(.*)$ /modules/dictionary/detail.php?id=$1
#
#

RewriteRule /modules/dictionary/letter_(.*)$ /modules/dictionary/letter.php?letter=$1
#
#


# --------------------T-TechTools
RewriteRule /modules/T-TechTools/$ /modules/T-TechTools/index.php
#


RewriteRule /modules/T-TechTools/C_(.*)$ /modules/T-TechTools/index.php?opi=$1
#
#
#
#
#
#
#
#




# --------------------sitemap
RewriteRule /modules/sitemap/$ /modules/sitemap/index.php
#




# --------------------ASCIIArtist
RewriteRule /modules/ASCIIArtist/$ /modules/ASCIIArtist/index.php
#




# --------------------PageRank
RewriteRule /modules/PageRank/$ /modules/PageRank/index.php
#


# --------------------hzzpy
RewriteRule /modules/HZZPY/$ /modules/HZZPY/index.php
#



# --------------------Liaise
RewriteRule /modules/liaise/$ /modules/liaise/index.php
#



# --------------------GI-Tools
RewriteRule /modules/GI-Tools/$ /modules/GI-Tools/index.php
#


RewriteRule /modules/GI-Tools/G$ /modules/GI-Tools/GI-Tools_pagerank.php
#


RewriteRule /modules/GI-Tools/$ /modules/GI-Tools/GI-Tools_HZZPY.php
#


RewriteRule /modules/GI-Tools/GI-T$ /modules/GI-Tools/GI-Tools_ASCIIArtist.php
#



# --------------------Other
RewriteRule /$ /search.php
#

#-------------------不要在根目录定义索引文件!!! - 比如 / ,这是错误的选择!!-------------------#



</VirtualHost>


Author: Emerald
WebSite:
Sitename: 绿色学院 - Green Institute

  

网友评论
<