
<IfModule mod_rewrite.c> RewriteEngine On # 下面是在根目录,文件夹要修改路径 RewriteBase / RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule ^(.*)$ /index.php/$1 [L] </IfModule> 代码如上,网络上搜索的,有朋友知道为啥设置了伪静态还是提示 404 吗?
1 OwO233 OP 呜呜呜,用的 Apache,想要弄成 wordpress 那种格式的。 |
2 lostberryzz 2021 年 10 月 23 日 Apache 用的人应该不多,配置也没几个人熟悉,换 Nginx 吧 |
3 OwO233 OP @lostberryzz #2 找大佬写的防火墙需要用 Apache 。 |
4 ysc3839 2021 年 10 月 24 日 试试 WordPress 提供的 .htaccess ? https://wordpress.org/support/article/htaccess/ |