我正在开发一个使用WordPress的网站。当您转到页面时,它会在页面名称前的URL中显示一个index.php。
例如:
http://hci2018.bcs.org/index.php/register/但它应该是
http://hci2018.bcs.org/register/如何删除index.php
发布于 2017-08-31 21:05:07
请更改网站的固定链接:
转到admin
您可以根据需要获取确切的URL。
发布于 2019-07-05 00:14:11
我也遇到过同样的问题。启用永久链接到帖子名称后,所有我的页面(主页除外)都显示为找不到(404)。这是因为.htaccess文件不能被Wordpress修改。我必须手动编辑/修改网站根文件夹中的.htaccess文件,如下所示:
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>在我这样做之后,一切都像以前一样工作了。在页面名称前不再有index.php。问题解决了!
https://stackoverflow.com/questions/45982014
复制相似问题