How to Remove Index.php from WordPress URL

How to Remove Index.php from WordPress URL

After you complete WordPress installation, you need to set up the permalinks since by default WordPress installation adds an index.php slug on your URLs.

To remove index.php from WordPress URL you need to reset the permalinks as I will quickly share in this quick tutorial.

It’s important to be cautious when you are changing the site URLs since this can affect your site by creating several 404 pages.

If you need to change the site URL, ensure you have a backup and also weigh the risks of changing the site URL since it may have a negative impact on your ranking on search engines since it may require re-indexing.

You may need to update the URL indexed and create 301 redirects from the old URLs to the new URLs.

A plugin like Yoast SEO can be helpful to create 301 redirects from the old URLs to new URLs.

Remove Index.php from WordPress URL

To remove the index.php from the WordPress URL you need to be logged in to the WordPress site as the admin.

If you have logged in successfully to your WordPress site, you need to follow the following steps to remove index.php from WordPress URL:

Steps to How to Remove Index.php from WordPress URL

  1. Navigate to the permalinks page in your dashboard menu under the settings as shown in the image below:

How to Remove Index.php from WordPress URL

  1. This is the settings page on WordPress that allows you to change the appearance of the URL on your WordPress site. This in WordPress is called permalink structure. By default when you install WordPress comes with the index.php added to the URL.  To remove the index.php from WordPress URL you simply need to change the permalink to your preference.
  2. The best permalink structure is one that is SEO friendly, I always find the post name permalink structure to be very good for SEO.
    You can simply choose that option and save the settings to update the permalink structure and remove the index.php from your WordPress URL as shown below :How to Remove Index.php from WordPress URL
  3. Check your front end to verify the URL has been updated and the index.php has been removed from your site URLs.

 

Conclusion

In this post, we have highlighted the steps you can take to remove index.php from URL WordPress.

The take from this tutorial is that you need to change the URL by updating the permalink structure on your WordPress admin settings page.

Similar Articles