How to Remove index.php From URL WordPress

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 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 permalink schema of posts.

Wordpress default permalinks
WordPress default permalinks

As we can see, in defaults, there will be index.php in the middle of the permalink for posts.

Solution

To remove index.php from URL WordPress, we have to select the Post Name option above Custom Structure in permalink options for posts.

Remove index.php From WordPress URL

Even more, we can also change the permalink structure of custom pages in WordPress.

Conclusion

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 🙂

Leave a Reply

Your email address will not be published. Required fields are marked *