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