typecho 301伪静态配置
教程分享
>
Java教程
(1463)
2023-03-28 11:29:14
typecho 301伪静态配置,步骤一:apache启用加载htaccess文件
打开配置文件
/etc/httpd/conf/httpd.conf
找到以下节点
<Directory "/var/www/html"> 配置
AllowOverride None 改为
AllowOverride All
typecho 301伪静态配置,步骤二:在typecho项目根目录下添加.htaccess文件
.htaccess文件内容:
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php [L,E=PATH_INFO:$1]
</IfModule>
typecho 301伪静态配置,步骤三:typecho后台设置伪静态
typecho配置伪静态
https://www.leftso.com/article/553.html