Search code examples
phpwordpressapachewebmariadb

I want to remove index.php in the link


I created my website using WordPress with Apache, PHP and MariaDB. Everything is working just fine. I created a page in the WordPress but when I open the page, the link included index.php http://localhost:8081/gis/index.php/wfs-map/ but my WordPress Address (URL) and Site Address (URL) is using this link http://localhost:8081/gis.

I tried to change the permalink where it automatically chose Custom Structure and the link is this http://localhost:8081/gis and in the box stated /index.php/%year%/%monthnum%/%day%/%postname%/. But when I remove the index.php, my page display an error

Not Found

The requested URL was not found on this server.

How can I remove the index.php?


Solution

  • You Can Simply Change The WordPress URL Structure From Settings < Permalinks

    And, Change The URL Pattern From Custom To postname:

    If You Still See The Error On Page, Then Maybe You add The Link With index.php in your page content.