分享
 
 
 

NameVirtualHost + mod_rewrite

王朝other·作者佚名  2006-01-09
窄屏简体版  字體: |||超大  

NameVirtualHost 192.168.1.2

<VirtualHost gi.2288.org>

ServerAdmin btbtd@yahoo.com.cn

DocumentRoot "I:/gi-2288"

ServerName gi.2288.org

ErrorLog "G:/Apache/dummy-host.example.com-error_log"

UseCanonicalName Off

Alias /article "L:/article/"

<Directory "L:/article">

Options All

AllowOverride all

Order allow,deny

Allow from all

</Directory>

Alias /document "L:/Document/"

<Directory "L:/Document/">

Options FollowSymLinks

AllowOverride all

Order allow,deny

Allow from all

</Directory>

Alias /forum "L:/forum/"

<Directory "L:/forum/">

Options FollowSymLinks

AllowOverride all

Order allow,deny

Allow from all

</Directory>

Alias /color-scheme "L:/color-scheme/"

<Directory "L:/color-scheme/">

Options FollowSymLinks

AllowOverride all

Order allow,deny

Allow from all

</Directory>

Alias /php "I:/php/"

<Directory "I:/php/">

Options FollowSymLinks

AllowOverride FileInfo

Order allow,deny

Allow from all

</Directory>

Alias /pro "L:/pro/"

<Directory "L:/pro">

Options FollowSymLinks

AllowOverride all

Order allow,deny

Allow from all

</Directory>

Alias /e "I:/e/"

<Directory "I:/e/">

Options FollowSymLinks

AllowOverride all

Order allow,deny

Allow from all

</Directory>

Alias /a "I:/a/"

<Directory "I:/a/">

Options FollowSymLinks

AllowOverride all

Order allow,deny

Allow from all

</Directory>

Alias /c "I:/c/"

<Directory "I:/c/">

Options FollowSymLinks

AllowOverride all

Order allow,deny

Allow from all

</Directory>

Alias /n "I:/n/"

<Directory "I:/n/">

Options FollowSymLinks

AllowOverride all

Order allow,deny

Allow from all

</Directory>

RewriteEngine On

# News Modules

RewriteRule /modules/news/topic_(.+)\.htm$ /modules/news/index.php?storytopic=$1 [L]

RewriteRule /modules/news/article_([0-9]+).htm$ /modules/news/article.php?storyid=$1

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

RewriteRule /modules/news/archive\.htm$ /modules/news/archive.php

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

# Wfdownloads Modules

RewriteRule /modules/wfdownloads/topic_(.+)\.htm$ /modules/wfdownloads/viewcat.php?cid=$1 [L]

RewriteRule /modules/wfdownloads/topic_o_(.+)\.htm$ /modules/wfdownloads/viewcat.php?op=&cid=$1 [L]

RewriteRule /modules/wfdownloads/newlist\.htm$ /modules/wfdownloads/newlist.php

RewriteRule /modules/wfdownloads/hit_\.htm$ /modules/wfdownloads/topten.php?list=hit

RewriteRule /modules/wfdownloads/rate\.htm$ /modules/wfdownloads/topten.php?list=rate

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

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

RewriteRule /modules/wfdownloads/list(.*)\.htm$ /modules/wfdownloads/viewcat.php?list=$1

# Mydownloads Modules

RewriteRule /modules/mydownloads/index.htm$ /modules/mydownloads/index.php

RewriteRule /modules/mydownloads/topic_(.+)\.htm$ /modules/mydownloads/viewcat.php?cid=$1 [L]

RewriteRule /modules/mydownloads/hit_(.+)\.htm$ /modules/mydownloads/topten.php?hit=$1 [L]

RewriteRule /modules/mydownloads/rate_(.+)\.htm$ /modules/mydownloads/topten.php?rate=$1 [L]

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

# MyAlbum

RewriteRule /modules/myalbum/index.htm$ /modules/myalbum/index.php

RewriteRule /modules/myalbum/hit_(.+)\.htm$ /modules/myalbum/topten.php?hit=1

RewriteRule /modules/myalbum/photo_(.+)\.htm$ /modules/myalbum/photo.php?lid=$1 [L]

RewriteRule /modules/myalbum/topic_(.+)\.htm$ /modules/myalbum/viewcat.php?cid=$1 [L]

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

RewriteRule /modules/myalbum/photo(.*)-(.*)\.htm$ /modules/myalbum/photo.php?lid=$1&cid=$2

# AMS

RewriteRule /modules/AMS/index.htm$ /modules/AMS/index.php

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

RewriteRule /modules/AMS/article_(.+)\.htm$ /modules/AMS/article.php?storyid=$1

RewriteRule /modules/AMS/topic_(.+)\.htm$ /modules/AMS/index.php?storytopic=$1

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

# Booklist

RewriteRule /modules/booklists/index.htm$ /modules/booklists/index.php

RewriteRule /modules/booklists/hit_(.+)\.htm$ /modules/booklists/topten.php?hit=$1

RewriteRule /modules/booklists/rate_(.+)\.htm$ /modules/booklists/topten.php?rate=$1

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

# Xphpbbi

RewriteRule /modules/xphpbbi/index.htm$ /modules/xphpbbi/index.php

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

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

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

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

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

# Wordbook

RewriteRule /modules/wordbook/index.htm$ /modules/wordbook/index.php

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

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

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

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

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

#Other

RewriteRule /index.html$ /index.php

</VirtualHost>

news:

http://gi.2288.org:88/modules/news/index.php?storytopic=0&start=30

http://gi.2288.org:88/modules/news/topic0-30.htm

wfdownloads:

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

http://gi.2288.org:88/modules/wfdownloads/down4-130.htm

http://gi.2288.org:88/modules/mydownloads/singlefile.php?cid=3&lid=63

http://gi.2288.org:88/modules/mydownloads/down3-63.htm

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

http://gi.2288.org:88/modules/myalbum/view20-42.htm

http://gi.2288.org:88/modules/myalbum/photo.php?lid=1483&cid=48

http://gi.2288.org:88/modules/myalbum/photo1484-48.htm

http://gi.2288.org:88/modules/AMS/archive.php?year=2004&month=12

http://gi.2288.org:88/modules/AMS/archive2004-12.htm

http://gi.2288.org:88/modules/booklists/viewcat.php?cid=1

http://gi.2288.org:88/modules/booklists/view1.htm

http://gi.2288.org:88/modules/xphpbbi/viewforum.php?f=16

http://gi.2288.org:88/modules/xphpbbi/viewforum_16.htm

http://gi.2288.org:88/modules/xphpbbi/viewtopic.php?t=59

http://gi.2288.org:88/modules/xphpbbi/viewtopic_59.htm

http://gi.2288.org:88/modules/xphpbbi/viewtopic.php?

t=59&start=0&postdays=0&postorder=asc&highlight=

http://gi.2288.org:88/modules/xphpbbi/viewtopic_post59-0-0-asc-2.htm

http://gi.2288.org:88/modules/xphpbbi/viewtopic.php?p=56#56

http://gi.2288.org:88/modules/xphpbbi/viewtopic_o56.htm#56

http://gi.2288.org:88/modules/newbb/viewtopic.php?topic_id=107&forum=59

http://gi.2288.org:88/modules/newbb/viewtopic_id107-59.htm

http://gi.2288.org:88/modules/wordbook/category.php?categoryID=1

http://gi.2288.org:88/modules/wordbook/category_1.htm

http://gi.2288.org:88/modules/wordbook/letter.php?init=A

http://gi.2288.org:88/modules/wordbook/letter_A.htm

http://gi.2288.org:88/modules/wordbook/entry.php?entryID=113

http://gi.2288.org:88/modules/wordbook/entry_113.htm

News Modules

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

http://gi.2288.org:88/modules/news/topic_2.htm

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

http://gi.2288.org:88/modules/news/article_281.htm

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

http://gi.2288.org:88/modules/news/index.htm

wfdownloads

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

http://gi.2288.org:88/modules/wfdownloads/topic_18.htm

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.htm

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

http://gi.2288.org:88/modules/wfdownloads/topic_o_19.htm

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

http://gi.2288.org:88/modules/wfdownloads/newlist.htm

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

http://gi.2288.org:88/modules/wfdownloads/hit.htm

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

http://gi.2288.org:88/modules/wfdownloads/rate.htm

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

http://gi.2288.org:88/modules/mydownloads/index.htm

mydownloads

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

http://gi.2288.org:88/modules/mydownloads/index.htm

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

http://gi.2288.org:88/modules/mydownloads/topic_3.htm

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

http://gi.2288.org:88/modules/mydownloads/hit/1.htm

myAlbum

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

http://gi.2288.org:88/modules/myalbum/index.htm

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

http://gi.2288.org:88/modules/myalbum/topic_41.htm

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

http://gi.2288.org:88/modules/myalbum/topic_20_photo_78.htm

AMS

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

http://gi.2288.org:88/modules/AMS/index.htm

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

http://gi.2288.org:88/modules/AMS/article_42.htm

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

http://gi.2288.org:88/modules/AMS/topic_2.htm

 
 
 
免责声明:本文为网络用户发布,其观点仅代表作者个人观点,与本站无关,本站仅提供信息存储服务。文中陈述内容未经本站证实,其真实性、完整性、及时性本站不作任何保证或承诺,请读者仅作参考,并请自行核实相关内容。
2023年上半年GDP全球前十五强
 百态   2023-10-24
美众议院议长启动对拜登的弹劾调查
 百态   2023-09-13
上海、济南、武汉等多地出现不明坠落物
 探索   2023-09-06
印度或要将国名改为“巴拉特”
 百态   2023-09-06
男子为女友送行,买票不登机被捕
 百态   2023-08-20
手机地震预警功能怎么开?
 干货   2023-08-06
女子4年卖2套房花700多万做美容:不但没变美脸,面部还出现变形
 百态   2023-08-04
住户一楼被水淹 还冲来8头猪
 百态   2023-07-31
女子体内爬出大量瓜子状活虫
 百态   2023-07-25
地球连续35年收到神秘规律性信号,网友:不要回答!
 探索   2023-07-21
全球镓价格本周大涨27%
 探索   2023-07-09
钱都流向了那些不缺钱的人,苦都留给了能吃苦的人
 探索   2023-07-02
倩女手游刀客魅者强控制(强混乱强眩晕强睡眠)和对应控制抗性的关系
 百态   2020-08-20
美国5月9日最新疫情:美国确诊人数突破131万
 百态   2020-05-09
荷兰政府宣布将集体辞职
 干货   2020-04-30
倩女幽魂手游师徒任务情义春秋猜成语答案逍遥观:鹏程万里
 干货   2019-11-12
倩女幽魂手游师徒任务情义春秋猜成语答案神机营:射石饮羽
 干货   2019-11-12
倩女幽魂手游师徒任务情义春秋猜成语答案昆仑山:拔刀相助
 干货   2019-11-12
倩女幽魂手游师徒任务情义春秋猜成语答案天工阁:鬼斧神工
 干货   2019-11-12
倩女幽魂手游师徒任务情义春秋猜成语答案丝路古道:单枪匹马
 干货   2019-11-12
倩女幽魂手游师徒任务情义春秋猜成语答案镇郊荒野:与虎谋皮
 干货   2019-11-12
倩女幽魂手游师徒任务情义春秋猜成语答案镇郊荒野:李代桃僵
 干货   2019-11-12
倩女幽魂手游师徒任务情义春秋猜成语答案镇郊荒野:指鹿为马
 干货   2019-11-12
倩女幽魂手游师徒任务情义春秋猜成语答案金陵:小鸟依人
 干货   2019-11-12
倩女幽魂手游师徒任务情义春秋猜成语答案金陵:千金买邻
 干货   2019-11-12
 
推荐阅读
 
 
 
>>返回首頁<<
 
靜靜地坐在廢墟上,四周的荒凉一望無際,忽然覺得,淒涼也很美
© 2005- 王朝網路 版權所有