問:在空間中,如何網址改成偽靜態!
這個網站偽靜態代碼
http://www.aotugz.com/doyo.php?c=a_sys&a=rewrite&article={article}/{file}{page}.html&article_type={article}/{type}/{tid}-{page}.html&product={product}/{file}{page}.html&product_type={product}/{type}/{tid}-{page}.html&message_type={message}/{type}/{tid}-{page}.html&special={special}/{sid}-{page}.html&labelcus_custom={file}.html,如何把網址改成偽靜態
答:您好,空間是支持偽靜態的,請核實下您的程序是否支持,另外請提供下具體的偽靜態規則,我司可以協助部署,非常感謝您長期對我司的支持!
問:如何查看程序是否支持
偽靜態規則
Apache Web Server(獨立主機用戶)
<IfModule mod_rewrite.c>
Apache Web Server(虛擬主機用戶)
# 將 RewriteEngine 模式打開
IIS Web Server(獨立主機用戶)
# 將 RewriteEngine 模式打開
IIS7 Web Server(獨立主機用戶)
<rewrite>
Nginx Web Server
rewrite ^([^\\.]*)/article/(\\w )([0-9] )\\.html$ $1/index.php?c=article&file=$2&page=$3 last;
rewrite ^([^\\.]*)/article/type/([0-9] )-([0-9] )\\.html$ $1/index.php?c=article&a=type&tid=$2&page=$3 last;
rewrite ^([^\\.]*)/product/(\\w )([0-9] )\\.html$ $1/index.php?c=product&file=$2&page=$3 last;
rewrite ^([^\\.]*)/product/type/([0-9] )-([0-9] )\\.html$ $1/index.php?c=product&a=type&tid=$2&page=$3 last;
rewrite ^([^\\.]*)/message/type/([0-9] )-([0-9] )\\.html$ $1/index.php?c=message&a=type&tid=$2&page=$3 last;
rewrite ^([^\\.]*)/special/([0-9] )-([0-9] )\\.html$ $1/index.php?c=special&sid=$2&page=$3 last;
rewrite ^([^\\.]*)/(\\w )\\.html$ $1/index.php?file=$2 last;
if (!-e $request_filename) {
return 404;
}
問:您好,您是iis環境已經幫您部署了規則,目前您在網站后臺啟用偽靜態功能后再測試一下,非常感謝您長期對我司的支持!
問:但開啟偽靜態后,網頁錯位
問:您好,檢查您已經取消了偽靜態功能,請先開啟,我司調試一下,非常感謝您長期對我司的支持!
問:已開啟
問:您好,請檢查下您的偽靜態是否設置有問題,您網站加載調用多了一層tjcms目錄。您的這些規則中也沒有涉及到圖片樣式的處理,我司可以嘗試收費100元幫您檢查調試, 如果需要我司嘗試調試,【站點設置 -> 配置偽靜態/301跳轉/自定義404錯誤】 請充值以后重新選擇這個工單分類提交,并提供網站的后臺賬號密碼以及說明設置步驟,非常感謝您長期對我司的支持!