系统:Debian 11
Apache 版本:2.4
使用的博客系统:Typecho 1.2
网站文件夹目录权限:755
遇到的问题:按照网络上搜索的教程配置好地址重写之后,除了首页和后台,其他网页访问全部 404 。
相关教程:
http://forum.typecho.org/viewtopic.php?t=10782
https://stackoverflow.com/questions/869092/how-to-enable-mod-rewrite-for-apache-2-2
我使用的伪静态规则:
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ /index.php/$1 [L]
</IfModule>
.htaccess 文件和 index.php 同目录。
求仁兄帮助。
Apache 版本:2.4
使用的博客系统:Typecho 1.2
网站文件夹目录权限:755
遇到的问题:按照网络上搜索的教程配置好地址重写之后,除了首页和后台,其他网页访问全部 404 。
相关教程:
http://forum.typecho.org/viewtopic.php?t=10782
https://stackoverflow.com/questions/869092/how-to-enable-mod-rewrite-for-apache-2-2
我使用的伪静态规则:
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ /index.php/$1 [L]
</IfModule>
.htaccess 文件和 index.php 同目录。
求仁兄帮助。