TeStore插件我装了几回了,总是404,于是我就放到本地测试,没问题啊,仔细观察地址 http://localhost/index.php/admin/te-store/market ,诶,怎么是index.php返回的请求啊,那怪不得,我的伪静态规则是仿 WordPress 改写到 Typecho 的。
WordPress的规则是:
rewrite {
if {path} not_match ^\/wp-admin
to {path} {path}/ /index.php?{query}
}
原来的Typecho规则
rewrite {
if {path} not_match ^\/admin
to {path} {path}/ /index.php{path}
}
好吧,不管admin就行了
rewrite {
to {path} {path}/ /index.php{path}
}
不过新问题又来了
Class 'DOMDocument' not found
Error: Class 'DOMDocument' not found in /var/www/html/site_blog/usr/plugins/TeStore/Action.php:107
Stack trace:
#0 /var/www/html/site_blog/usr/plugins/TeStore/views/market.php(4): TeStore_Action->getPluginData()
#1 /var/www/html/site_blog/usr/plugins/TeStore/Action.php(189): include_once('/var/www/html/si...')
#2 /var/www/html/site_blog/var/Typecho/Router.php(138): TeStore_Action->market()
#3 /var/www/html/site_blog/index.php(23): Typecho_Router::dispatch()
#4 {main}
Typecho
这是缺少php-xml
拓展了。
一直折腾一直爽
caddy听说很快,比nginx好用吗
快倒没感觉,主要是因为自动申请let ssl证书