Typecho强制打开永久链接

本身的群晖的Apache2.4是支持mode-rewrite的,但是不知道为什么typecho就是检测失败。

自己研究了下,选项强制打开,再修改对应的.htaccess文件就好了,写法如下:

# Enable the rewrite engine
RewriteEngine On
RewriteBase /
# Short url for typecho pages
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^/?note(/.*)$ %{DOCUMENT_ROOT}/note/index.php$1 [L]

可以根据自己的目录结构修改参数,多试下就可以了。

Leave a Reply

发表回复

您的电子邮箱地址不会被公开。 必填项已用*标注