帝國CMS7.0IIS偽靜態教程步驟:
1、進后后臺 - 系統 - 系統設置 - 偽靜態參數設置 - 都點擊默認
2、在網站根目錄(web文件夾)下建一個文件,文件名及后綴格式為:httpd.ini
3、用txt/記事本模式打開httpd.ini文件,將下面的內容復制到該文件內:
- [ISAPI_Rewrite]
- # 3600 = 1 hour
- CacheClockRate 3600
- RewriteEngine On
- RepeatLimit 32
- #帝國#
- #信息內容頁:showinfo-[!--classid--]-[!--id--]-[!--page--].html
- RewriteRule ^(.*)/showinfo-(.+?)-(.+?)-(.+?)/.html$ $1/e/action/ShowInfo/.php/?
- classid=$2&id=$3&page=$4
- #信息列表:listinfo-[!--classid--]-[!--page--].html
- RewriteRule ^(.*)/listinfo-(.+?)-(.+?)/.html$ $1/e/action/ListInfo/index/.php/?
- classid=$2&page=$3
- //開源軟件:Vevb.com
- #標題分類列表頁:infotype-[!--ttid--]-[!--page--].html
- RewriteRule ^(.*)/infotype-(.+?)-(.+?)/.html$ $1/e/action/InfoType/index/.php/?
- ttid=$2&page=$3
- #TAGS信息列表頁:tags-[!--tagname--]-[!--page--].html
- RewriteRule ^(.*)/tags-(.+?)-(.+?)/.html$ $1/e/tags/index/.php/?tagname=$2&page=$3
最后進入win2003服務器 配置站點,讓站點支持Rewrite即可.
不同服務器有不同的規則,下面給大家說明下.
帝國CMS在Linux主機下實現偽靜態方法:
確認虛擬主機是否支持rewrite偽靜態.htaccess文件,添加.htaccess 文件,把htaccess 文件放在網站根目錄.
這里只介紹了帝國CMS在Windows主機下實現偽靜態方法.
新聞熱點
疑難解答