<IfModule mod_rewrite.c>
RewriteEngine On
# 下面是在根目录,文件夹要修改路径
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_URI} !^/[0-9]+\..+\.cpaneldcv$
RewriteCond %{REQUEST_URI} !^/[A-F0-9]{32}\.txt(?:\ Comodo\ DCV)?$
RewriteRule ^(.*)$ /index.php/$1 [L]
</IfModule>然后登录wecenter网站后台,全局设置 -> 站点功能->开启伪静态->点击第二个获取规则->然后自定义路由里会获取到第二个规则,然后在自定义路由的规则基础上可以根据自己喜好修改一些内容。
建站问的自定义路由:/article/(:any)===/article_(:any).html /question/(:any)===/question_(:any).html /topic/(:any)===/topic_(:any).html /people/(:any)===/people_(:any).html /account/login/===/login/ /account/logout/===/logout/ /account/setting/(:any)/===/setting/(:any)/最后不要忘记点击 保存设置 。好了,教程到此结束,希望对大家有错帮助。
这家伙很懒,还没有设置简介