Home > Article > CMS Tutorial > How to set html suffix on wordpress article page
Set HTML suffix for WordPress post pages: Enable permalinks, select “Custom structure” and enter the code: /%postname%.html. Save changes, refresh permalinks, and check if the article page URL contains the .html suffix. Use the .html suffix only once in the theme to avoid exposing article pages to the REST API.
How to set HTML suffix for WordPress article page
Adding HTML suffix for WordPress article page is relatively simple process to help you manage and organize your content more easily. Here’s how to do it:
Step 1: Enable Permalinks
<code>/%postname%.html</code>
Step 2: Save Changes
Step 3: Refresh the permalinks
Step 4: Check the results
Tip:
The above is the detailed content of How to set html suffix on wordpress article page. For more information, please follow other related articles on the PHP Chinese website!