Here we are going to learn how to remove index.php in the URL structure WordPress. As we know, permalinks are one of the most important factors of any website, and it’s easy to change permalink structures in WordPress.
Follow the below steps to remove any extensions or to change the URL structure of any WordPress website.
Remove index.php From WordPress URL
To change the URL structure, First, go to Settings > Permalinks.
In general, WordPress provides many types of permalink schemas for posts and pages. Mostly it has index.php in the middle of the permalink schema of posts.
As we can see, in defaults, there will be index.php in the middle of the permalink for posts.
To remove index.php from URL WordPress, we have to select the Post Name option above Custom Structure in the permalink options for posts.
Even more, we can also change the permalink structure of custom pages in WordPress.
Now we understand the procedure to remove index.php in WordPress URL. Also, we gained a little knowledge about WordPress permalinks and how to change them for posts and pages.
Enjoy WordPress 🙂