Index.php is displayed in WordPress permalink

Aug 31, 2020 PHP CSS WordPress

After touching WordPress after a long time, there is a problem that permalink goes wrong. .. ..

##Situation

In WordPress, bite index.php in the URL. Like this ↓

https://sample/index.php/Posted article name/

The ideal is When displaying a fixed page,

https://sample/fixed page/

So, it should be displayed, but I can not do it,

https://sample/index.php/fixed page/

The mystery that is displayed. .. ..

##environment

MacBook Catalina MAMP PHP 7.4.2 WordPress 5.5.5 (I also tried 5.4.2)

##Solution

I didn’t understand the cause at all and had a hard time. .. ..

(In the first place, it is unknown when it started to appear.) (I’m taking it to Genius Bar because of a bad PC, so I wonder if that is the cause)

It was just about setting up MAMP.

In httpd.conf of MAMP

<Directory />
    Options Indexes FollowSymLinks
    AllowOverride None
</Directory>

The cause was that AllowOverride was None.

<Directory />
    Options Indexes FollowSymLinks
    AllowOverride All
</Directory>

I fixed it when I set it to All. .. ..

https://sample/fixed page/

It was displayed in.

What is AllowOverride about Apache access permissions? .. ..

I learned a lot.

http://bashalog.c-brains.jp/10/11/16-121901.php