YIem`s Blog -心比天高命比纸薄-链接找不到的请在站内搜索内容！ - 静态规则
type: channel
link: https://www.yiem.net/tag/%E9%9D%99%E6%80%81%E8%A7%84%E5%88%99/
items: Typecho文章链接打不开，Typecho文章静态规则的问题

Typecho文章链接打不开，Typecho文章静态规则的问题
type: item
date: 2019-02-19T02:43:00+08:00
description: Typecho文章链接打不开，Typecho文章静态规则的问题注意：千万别忘了在Typecho设置中的永久链接中， 选择启用地址重写！！Typecho Apache 伪静态规则<IfModule mod_rewrite.c> RewriteEngine On RewriteBase / RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule ^(.*)$ /index.php/$1 [L] Typecho Nginx 伪静态规则location / { index index.html index.php; if (-f $request_filename/index.html) { rewrite (.*) $1/index.html break; } if (-f $request_filename/index.php) { rewrite (.*) $1/index.php; } if (!-f $request_filename) { rewrite (.*) /index.php; } }