中国IT动力,最新最全的IT技术教程
最新100篇 | 推荐100篇 | 专题100篇 | 排行榜 | 搜索 | 在线API文档 | 网通镜像
首 页 | 程序开发 | 操作系统 | 软件应用 | 图形图象 | 网络应用 | 精文荟萃 | 教育认证 | 硬件维护 | 未整理篇 | 站长教程
ASP JS PHP工程 ASP.NET 网站建设 UML J2EESUN .NET VC VB VFP 网络维护 数据库 DB2 SQL2000 Oracle Mysql
服务器 Win2000 Office C DreamWeaver FireWorks Flash PhotoShop 上网宝典 CorelDraw 协议大全 网络安全 微软认证
硬件维护  CPU  主板  硬盘  内存  显卡  显示器  键盘鼠标  声卡音箱  打印机  机箱电源  BIOS  网卡  C#  Java  Delphi  vs.net2005
  当前位置:> 操作系统 > 服务器 > Web服务器
NameVirtualHost+mod_rewrite
作者:佚名 时间:2004-10-23 10:52 出处:互连网 责编:chinaitpower
              摘要:NameVirtualHost+mod_rewrite
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



关闭本页
 
首页 | 投资与合作 | 服务条款 | 隐私政策 | 收藏本站 | 设为首页 | 新用户注册 | 免责声明 | 使用帮助
Copyright ©2005-2008 chinaitpower.com All rights reserved. www.chinaitpower.com 版权所有