NameVirtualHost + mod_rewrite

类别:网站制作 点击:0 评论:0 推荐:
NameVirtualHost 192.168.1.2
<VirtualHost gi.2288.org>
ServerAdmin [email protected]
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

本文地址:http://com.8s8s.com/it/it30900.htm