opencart全面偽靜態方法
方法一
購買外掛程式opencart seo pack pro
該外掛程式很強大很貴。請自行搜尋該資料。
方法二
opencart在開啟偽靜態功能之後(更改htaccess.txt為.htaccess,在catagory和產品seo處新增相應的偽靜態文字),新增的產品頁面和分類頁面都可以實現靜態化效果,其他頁面需要以下方法實現
編輯catalog/controller/common/seo_url.php
foreach ($data as $key => $value)
} elseif ($key == 'path')
} unset($data[$key]); }
這裡新增下列**!!!!!!!!!!!! }
} if ($url)
if ($query)
} return $url_info['scheme'] . '://' . $url_info['host'] . (isset($url_info['port']) ? ':' . $url_info['port'] : '') . str_replace('/index.php', '', $url_info['path']) . $url . $query;
} else }}
?>
需要新增的**:
if ($key == 'route')
} 然後在資料庫phpmyadmin裡sql-執行 sql 查詢-執行 (如執行錯誤,請檢查url_alias名稱是否有字首,例:oc_url_alias,請在自行新增字首)
/ 或找到url_alias手動輸入
insert into url_alias (query, keyword) values ('common/home', '');
insert into url_alias (query, keyword) values ('account/wishlist', 'wishlist');
insert into url_alias (query, keyword) values ('account/account', 'my-account');
insert into url_alias (query, keyword) values ('checkout/cart', 'shopping-cart');
insert into url_alias (query, keyword) values ('checkout/checkout', 'checkout');
insert into url_alias (query, keyword) values ('account/login', 'login');
insert into url_alias (query, keyword) values ('account/logout', 'logout');
insert into url_alias (query, keyword) values ('account/order', 'order-history');
insert into url_alias (query, keyword) values ('account/newsletter', 'newsletter');
insert into url_alias (query, keyword) values ('product/special', 'specials');
insert into url_alias (query, keyword) values ('affiliate/account', 'affiliates');
insert into url_alias (query, keyword) values ('checkout/voucher', 'gift-vouchers');
insert into url_alias (query, keyword) values ('product/manufacturer', 'brands');
insert into url_alias (query, keyword) values ('information/contact', 'contact-us');
insert into url_alias (query, keyword) values ('account/return/insert', 'request-return');
insert into url_alias (query, keyword) values ('information/sitemap', 'sitemap');
insert into url_alias (query, keyword) values ('account/forgotten', 'forgot-password');
insert into url_alias (query, keyword) values ('account/download', 'downloads');
insert into url_alias (query, keyword) values ('account/return', 'returns');
insert into url_alias (query, keyword) values ('account/transaction', 'transactions');
insert into url_alias (query, keyword) values ('account/register', 'create-account');
insert into url_alias (query, keyword) values ('product/compare', 'compare-products');
insert into url_alias (query, keyword) values ('product/search', 'search');
insert into url_alias (query, keyword) values ('account/edit', 'edit-account');
insert into url_alias (query, keyword) values ('account/password', 'change-password');
insert into url_alias (query, keyword) values ('account/address', 'address-book');
insert into url_alias (query, keyword) values ('account/reward', 'reward-points');
insert into url_alias (query, keyword) values ('affiliate/edit', 'edit-affiliate-account');
insert into url_alias (query, keyword) values ('affiliate/password', 'change-affiliate-password');
insert into url_alias (query, keyword) values ('affiliate/payment', 'affiliate-payment-options');
insert into url_alias (query, keyword) values ('affiliate/tracking', 'affiliate-tracking-code');
insert into url_alias (query, keyword) values ('affiliate/transaction', 'affiliate-transactions');
insert into url_alias (query, keyword) values ('affiliate/logout', 'affiliate-logout');
insert into url_alias (query, keyword) values ('affiliate/forgotten', 'affiliate-forgot-password');
insert into url_alias (query, keyword) values ('affiliate/register', 'create-affiliate-account');
insert into url_alias (query, keyword) values ('affiliate/login', 'affiliate-login');
Moka無接觸招聘 鬥魚 全面開啟線上招聘!
疫情當前,各個企程式設計客棧業紛紛組織開展雲辦公,有效實行疫情防控。為方便合作夥伴在防疫期間仍舊能夠高效的引進人才,moka智慧型化招聘管理系統 以下簡稱moka 率先提出 無接觸招聘 解決方案。近日,國內領先遊戲直播平台鬥魚率先應用該方案,在moka的幫助下,通過無接觸面試精準網羅人才。鬥魚直播平...
搭載AI引擎,騰訊云云鏡開啟全面防護模式
ai 大資料雙輪驅動,雲鏡檢出率居行業首位 針對使用者普遍關心的黑客成功入侵而防禦系統未感知到的問題,公升級之後的雲鏡已實現了全鏈路的入侵檢測方案,可多方位攔截各種未知攻擊。例如,蔚來汽車對雲上主機全部開通了雲鏡檢測服務,具備從主機賬戶行為 網路連線 檔案變化等維度監測黑客入侵行為,一旦發現企業被黑...
搭載AI引擎,騰訊云云鏡開啟全面防護模式
ai 大資料雙輪驅動,雲鏡檢出率居行業首位 針對使用者普遍關心的黑客成功入侵而防禦系統未感知到的問題,公升級之後的雲鏡已實現了全鏈路的入侵檢測方案,可多方位攔截各種未知攻擊。例如,蔚來汽車對雲上主機全部開通了雲鏡檢測服務,具備從主機賬戶行為 網路連線 檔案變化等維度監測黑客入侵行為,一旦發現企業被黑...