我在网址中遇到索引.php问题


I'm having troubles with index.php in my urls

>你好,我有一个主域,它设置了instabuilder,当使用instabuilding创建页面时,它会将其创建为"maindomain.com/pagename"

我遇到的问题是当我使用 instabuilder 创建一个页面时,我的插件域会创建链接 addondomain.com/index.php/pagename 为什么索引.php出现,链接看起来不太好。

任何帮助将不胜感激。谢谢

这是

您可以在 .htaccess(在 DOCUMENT_ROOT 下)中使用的代码,用于从 URI 中删除索引.php:

Options +FollowSymLinks -MultiViews
# Turn mod_rewrite on
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php?$1 [L,QSA]
RewriteCond %{THE_REQUEST} ^[A-Z]{3,}'s(.*)/index'.php [NC]
RewriteRule ^ %1 [R=301,L]

复制自

使用 .htaccess 从网址中删除"索引.php"