espcms易思企業**管理系統安裝包內預設只提供.htaccess的配置,那麼怎麼讓這個程式在lnmp下也支援偽靜態呢?有乙個**可以把.htaccess轉成nginx支援的格式,**: 。但是如果把轉換後的格式直接拿來使用,章郎蟲測試後發現還是錯誤的。所以這裡把我修改後的配置檔案和大家分享下。經過測試,絕對可用。
rewrite ^/([w/]*)(article)_(list)_([0-9]+)[_]*([0-9]*).([a-za-z]+)$ $1/index.php?ac=$2&at=$3&tid=$4 last;
rewrite ^/([w/]*)(article)_(read)_([0-9]+).([a-za-z]+)$ $1/index.php?ac=$2&at=$3&did=$4 last;
rewrite ^/([w/]*)(article)_(read)_([0-9]+)_([0-9]+).([a-za-z]+)$ $1/index.php?ac=$2&at=$3&did=$4&page=$5 last;
rewrite ^/([w/]*)(special)_(list)_([0-9]+)[_]*([0-9]*).([a-za-z]+)$ $1/index.php?page=$5&ac=$2&at=$3&sid=$4 last;
rewrite ^/([w/]*)(search)_([a-za-z]+).([a-za-z]+)$ $1/index.php?ac=$2&at=$3 last;
rewrite ^/([w/]*)(messmain)_([a-za-z]+)_([0-9]+).([a-za-z]+)$ $1/index.php?ac=$2&at=$3&did=$4 last;
rewrite ^/([w/]*)(messmain)_([a-za-z]+).([a-za-z]+)$ $1/index.php?ac=$2&at=$3 last;
rewrite ^/([w/]*)(form)_([a-za-z]+)_([0-9]+).([a-za-z]+)$ $1/index.php?ac=$2&at=$3&fgid=$4 last;
rewrite ^/([w/]*)(order)_([a-za-z]+).([html]+)$ $1/index.php?ac=$2&at=$3 last;
rewrite ^/([w/]*)(order)_([a-za-z]+)_([0-9]+).([a-za-z]+)$ $1/index.php?ac=$2&at=$3&did=$4 last;
rewrite ^/([w/]*)(ordermain)_([a-za-z]+).([a-za-z]+)$ $1/index.php?ac=$2&at=$3 last;
rewrite ^/([w/]*)(ordermain)_(list)_([0-9]+)[_]*([0-9]*).([a-za-z]+)$ $1/index.php?page=$5&ac=$2&at=$3 last;
rewrite ^/([w/]*)(ordermain)_([a-za-z]+)_([0-9]+).([a-za-z]+)$ $1/index.php?ac=$2&at=$3&oid=$4 last;
rewrite ^/([w/]*)(enquiry)_([a-za-z]+).([a-za-z]+)$ $1/index.php?ac=$2&at=$3 last;
rewrite ^/([w/]*)(enquiry)_([a-za-z]+)_([0-9]+).([a-za-z]+)$ $1/index.php?ac=$2&at=$3&did=$4 last;
rewrite ^/([w/]*)(enquirymain)_([a-za-z]+).([a-za-z]+)$ $1/index.php?ac=$2&at=$3 last;
rewrite ^/([w/]*)(enquirymain)_(list)_([0-9]+)[_]*([0-9]*).([a-za-z]+)$ $1/index.php?page=$5&ac=$2&at=$3 last;
rewrite ^/([w/]*)(enquirymain)_([a-za-z]+)_([0-9]+).([a-za-z]+)$ $1/index.php?ac=$2&at=$3&eid=$4 last;
rewrite ^/([w/]*)(forum)_([a-za-z]+).([a-za-z]+)$ $1/index.php?ac=$2&at=$3 last;
rewrite ^/([w/]*)(forum)_(list)_([0-9]+)[_]*([0-9]*).([a-za-z]+)$ $1/index.php?page=$5&ac=$2&at=$3&btid=$4 last;
rewrite ^/([w/]*)(forum)_(read)_([0-9]+)[_]*([0-9]*).([a-za-z]+)$ $1/index.php?page=$5&ac=$2&at=$3&bid=$4 last;
rewrite ^/([w/]*)(forum)_(add)_([0-9]+).([a-za-z]+)$ $1/index.php?ac=$2&at=$3&btid=$4 last;
rewrite ^/([w/]*)(forummain)_([a-za-z]+).([a-za-z]+)$ $1/index.php?ac=$2&at=$3 last;
rewrite ^/([w/]*)(forummain)_(list)_([0-9]+)[_]*([0-9]*).([a-za-z]+)$ $1/index.php?page=$5&ac=$2&at=$3 last;
rewrite ^/([w/]*)(forummain)_([a-za-z]+)_([0-9]+).([a-za-z]+)$ $1/index.php?ac=$2&at=$3&bid=$4 last;
rewrite ^/([w/]*)(public)_([a-za-z]+).([a-za-z]+)$ $1/index.php?ac=$2&at=$3 last;
rewrite ^/([w/]*)(public)_([a-za-z]+)_([.0-9a-za-z]+).([a-za-z]+)$ $1/index.php?ac=$2&at=$3&rd=$4 last;
rewrite ^/([w/]*)(member)_([a-za-z]+).([a-za-z]+)$ $1/index.php?ac=$2&at=$3 last;
rewrite ^/([w/]*)(membermain)_([a-za-z]+).([a-za-z]+)$ $1/index.php?ac=$2&at=$3 last;
CentOS 環境下 搭建 LNMP環境
關掉防火牆,避免實驗中出現伺服器無法訪問的情況 chkconfig iptables off安裝lnmp環境所需的開發包和庫檔案 yum y install ntp make openssl openssl devel pcre pcre devel libpng libpng devel libj...
Lnmp環境下搭建SVN
第一步 安裝svn yum install subversion 第二步 在 usr local下建立svn資料夾並賦予777 chmod r 777 usr local svn 第三步 建立版本庫 svnadmin create usr local svn project 其中project等資料...
centos 下安裝lnmp環境
使用 yum 安裝 nginx yum install nginx yms 修改 etc nginx conf.d default.conf,去除對 ipv6 位址的監聽 示例 etc nginx conf.d default.conf server error page 404 404.html ...