If you currently have /path/to/site.html and change it to /path/to/site, this will affect SEO, as search engines think they know the url (the former).
However, there are solutions to this. You can either keep the .html at the end of the URL (there should be no problem to use a WordPress permalink with .html in the end), or if you want to clean up your URLs, you need to redirect from one to the other (use 301 redirects).
There is extensive material on how redirects work (like this), if you only want the .html to disappear (and rest of the URL stays the same), something like this could already work in an .htaccess
RewriteRule ^(*.)\.html$ $1 [R=301,QSA,L]
Otherwise, you’d need a more complex structure which depends on your specific current situation.
Related Posts:
- Disable Attachment Pages Completely
- How is WordPress manipulating the posts like there are folders?
- 200 Rewrite blog post links
- wp_trim_words() does not work with my code Am I doing any mistake in my code?
- how to edit a specific post slug using a php code?
- understand what code is doing when prepending /blog
- Custom URL for multiple categories hierarchy
- 404 on old link after changing post url
- How do I generate formatted permalinks as specified in backend options?
- Remove option to allow trackbacks/pingbacks from post page options
- Facebook Comment Count
- Change slug with custom field
- Handling an Ajax form submit
- New Plugin Review
- Use template for posts with a particular category grandparent
- A Specific Blog post to be assigned as the landing page of my wordpress blog
- Automatically generate Post/Page from searched Database item?
- Featured image fallback link to permalink
- “before delete post” action fire when the post is updated?
- Hide post if matches current month and year
- Automatically add custom CSS to new posts using a category template
- How Display Posts on category
- Query all posts of a custom taxonomy term
- A solution to set metatags with my page generating plugin?
- Automatically create child pages and grandchild pages when saving a (parent) page
- How can I add extra word in permalink when someone click download button?
- remove post that has no content
- Create custom permalinks to show Custom Post Type’s relationship?
- Custom posts in different columns style
- How to show only subcategories in parent category not parent category?
- WP Insert Post and then go to post
- get_template_directory_uri() providing wrong path for img
- Parse error: syntax error, unexpected end of file
- stripping tags from excerpt in WordPress is not working
- Automatically add images to a menu
- Load Posts on Click via Ajax into a DIV
- Store metakey value as an array
- Only show first image in foreach loop
- WordPress yoast seo plugin – parse snippet var in meta description
- create front-end users post list by specific category
- Error display post thumbnails for previous and next post
- form $_post action value gets truncated after it passes through two forms
- WordPress theme showing blank page
- Strip hashtag off permalink with php
- Plugin for TinyMCE to create reference to other posts
- Wp Query : Order by distance lat,lon
- remove specificly the last tag in all posts
- Add posts to custom table in database instead of wp_posts
- Obfuscate links (for SEO purpose) [closed]
- get value from get_post_meta then reuse it in another get_post_meta
- How to show categories and date on posts
- WordPress Post Block Element not properly parsed with the_content filter
- Build A Custom SQL Query for WordPress Search
- Allow two posts (from different categories) to have the same slug
- Test the existence of a page/article by its URL, taking in consideration the URL rewriting by filters
- WordPress Custom Form – Getting Query Vars, Weird Glitch?
- How to Send Pingbacks for all Posts in WordPress?
- Display articles with a different template in the home page | Solved |
- How can I check if a post with a particular slug or title exists?
- WordPress sorting posts by date and title using a dropdown
- Query on a repeater date (acf)
- Trying to get post ID outside loop on blog page
- Rewrite rule not working, but only when parameter is text
- Trying to show the category of a post in the post display
- Split post or page content in two or more columns
- Enqueue script only on child pages of custom post types
- Attach and retrive multiple pdf files to post or page
- Post permalink buttons all going to the first post
- Send POST request to Flask app from functions.php file
- WordPress/NGINX not respecting the category URL for new posts
- Get list of posts from attachment
- Send Notification after post published was working but stopped after the last WP update
- Permalink like example.com/taxonomy/post_type/postname
- How to insert text into post based on category – via single.php file
- When working with a post, almost all wp_postmeta are deleted
- Displaying POST content with HTML tags and all
- Generate random access token to a post page
- Pagination in WP Queries
- Add div after every 4 posts then every 2 posts for a responsive loop
- Only display notification on single post
- Get posts associated with media attachment
- Can’t put a hyperlink on Featured Post’s Image
- Passed variable gets undefined variable error on insert on next page
- WordPress get_post_meta issue
- Newly published content gives 404 on wordpress
- Why does WP_Query show only the same post even with different categories and endwhile?
- Display pages from specific page template
- get_permalink returning first letter
- Query posts by custom fields (object post)
- How to display the date under the post title?
- Custom HTML/CSS Theme into WordPress – SEO considerations
- WooCommerce: write featured image dimensions to custom fields in product’
- why css file not link?how to create permalink?
- transition_post_status hook, works – but not if the post is new
- How to automatically flush permalinks?
- Execute wp_after_insert_post after the permalink is customized
- How to get ACF field to show up on all posts on front end?
- Modify the permalink structure for a specific category
- Warning: Undefined variable $post_id
- I’ve added SKU to Woocommerce permalinks, but I have small issue