> # 1、部署項目代碼
~~~
1.上傳代碼
2.修改 根目錄config.php 里邊得數據庫配置
押金收款賬戶信息
碼商前臺單通道測試賬戶和key
網站名字
~~~
> # 2、添加站點
>
> 1.域名輸入框,[填寫域名www.xxx.com](http://xn--www-y11e65iw1h71a.xxx.com/)
> 2.添加數據庫,上傳sql文件、導入sql
> 3.添加偽靜態
* * *
# 圖片注釋
## 添加偽靜態
Nginx偽靜態:
location / {
if (!-e $request\_filename) {
rewrite ^/(\[a-zA-Z0-9\_-\]+)/(\[a-zA-Z0-9\_-\]+)/(\[a-zA-Z0-9\_-\]+)$ /index.php?$1.$2.$3 last;
rewrite ^/(\[a-zA-Z0-9\_-\]+)/(\[a-zA-Z0-9\_-\]+)/(\[a-zA-Z0-9\_-\]+).do$ /index.php?$1.$2.$3 last;
break;
}
}
Apache偽靜態:
RewriteEngine on
RewriteCond %{REQUEST\_FILENAME} !-f
RewriteCond %{REQUEST\_URI} !^/css
RewriteCond %{REQUEST\_URI} !^/js
RewriteCond %{REQUEST\_URI} !^/images
RewriteCond %{REQUEST\_URI} !^.*(.css|.js|.gif|.png|.jpg|.jpeg|.xml)
#解決重寫后接不到問號后面的參數
RewriteCond %{QUERY\_STRING} ^(.*)$
RewriteRule ^(\[a-zA-Z0-9\_-\]+)/(\[a-zA-Z0-9\_-\]+)/(\[a-zA-Z0-9\_-\]+)$ index.php?$1.$2.$3 \[L,QSA\]
RewriteRule ^(\[a-zA-Z0-9\_-\]+)/(\[a-zA-Z0-9\_-\]+)/(\[a-zA-Z0-9\_-\]+).do$ index.php?$1.$2.$3 \[L,QSA\]