欧美bbbwbbbw肥妇,免费乱码人妻系列日韩,一级黄片

Apache 配置偽靜態(tài)詳細步驟

 更新時間:2010年02月28日 11:00:36   作者:  
Apache配置偽靜態(tài)
dz論壇目錄下.htaccess文件內(nèi)容:

程序代碼
復(fù)制代碼 代碼如下:

# 將 RewriteEngine 模式打開
RewriteEngine On
# 修改以下語句中的 /bbs 為你的論壇目錄地址,如果程序放在根目錄中,請將 /bbs 修改為 /
RewriteBase /bbs
# Rewrite 系統(tǒng)規(guī)則請勿修改
RewriteRule ^archiver/((fid|tid)-[\w\-]+\.html)$ archiver/index.php?$1
RewriteRule ^forum-([0-9]+)-([0-9]+)\.html$ forumdisplay.php?fid=$1&page=$2
RewriteRule ^thread-([0-9]+)-([0-9]+)-([0-9]+)\.html$ viewthread.php?tid=$1&extra=page\%3D$3&page=$2
RewriteRule ^space-(username|uid)-(.+)\.html$ space.php?$1=$2
RewriteRule ^tag-(.+)\.html$ tag.php?name=$1

配置Apache;
1、修改Apache 的配置文件 httpd.conf 。將#LoadModule rewrite_module modules/mod_rewrite前面的#去掉

2、在 httpd.conf中添加:
復(fù)制代碼 代碼如下:

<IfModule mod_rewrite.c>
RewriteEngine On
#...
</IfModule>

3、保存httpd.conf并重啟Apache

相關(guān)文章

最新評論