WordPress开启伪静态,如果是Apache环境,只需要在根目录下新建.hteccess文件,将伪静态规则放进去就可以了
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>
WordPress更改固定来链接格式,我们在后台找到设置,固定链接,然后根据自己的需求选择适合自己的链接格式就可以了
© 版权声明
文章版权归作者所有,未经允许请勿转载。
THE END
暂无评论内容