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?
- change the blog in the url if you go from a specific page wordpress
- WordPress custom slug (endpoint) and compare all links
- Getting a specific post values to another div or modal
- Trying to add attribute to my posts’ featured image
- Displaying the last post on static homepage
- Can’t get wp_insert_post to work
- Why not yield/iterable in posts interface?
- Best practice for migration friendly images in posts/pages?
- Add prefix to link url
- Removing rel=”nofollow” from links posted in Post Content
- How to show part of the_content?
- A solution to set metatags with my page generating plugin?
- WordPress plugin for nicer looking slugs? Have multiple pages named the same but they get different slugs
- Unreadable pagination
- Getting error when trying to implement site-wide breadcrumbs in Twentytwentyone Theme [closed]
- How to set a min number of words for a blog post
- Add meta noindex to post if it has a specific taxonomy
- Loop through categories and display posts title under each dropdown
- Get post id in a function when edit/add a post
- How to remove role=”navigation” from all nav elements?
- php script to change slug in post automatically
- how do I get a specific post from a post with a subcategory in WP
- Automatically create child pages and grandchild pages when saving a (parent) page
- Second transition_post_status hook fired instead of the first
- Changes in permalink structure in WordPress and how to apply to in-site links
- WordPress Persistent connection rule does not work for “posts”
- WordPress every page is 404 not found including admin resources
- WordPress returning 404 for multisite pages
- How to use $_GET function WordPress backend
- How to store post ID’s in cookie or session to display the same posts later
- Which hook/action will help me solve my problem?
- How can I add extra word in permalink when someone click download button?
- Change title only in dynamic page
- Post + form + action + results on the same page
- Open post-content in archive page in a Modal box with bootstrap
- remove post that has no content
- Loading index.php contents which located outside blog folder for post single page
- get post content of particular post by url
- Post repeating with infinite scroll
- Create custom permalinks to show Custom Post Type’s relationship?
- Custom posts in different columns style
- Get children post mime type using parent post_ID wp_post
- How to show only subcategories in parent category not parent category?
- 404 error when I acess the second page of post-type
- Which PHP page is the Default Posts Page
- retrieve post data and insert it in seperate static html page without WordPress
- WP Insert Post and then go to post
- Why am I getting a different filename? And how does WordPress load singular.php for both Page & Post? (Fresh WordPress installation)
- Returning data instead of echoing/printing
- Category title output before opening title tag
- Display related posts without a plugin
- How to get post permalink url without a href
- Counting Search results, and displaying the offset per page
- Count posts on multisite with blog id
- Function works everywhere, how to keep it to execute when creating a new post
- Making (and edit existing) posts with ID included
- get_template_directory_uri() providing wrong path for img
- Copy taxonomy terms from one post to another programmatically
- Parsing Menu Items and Blog Posts
- Pagination on Custom Post
- $wpdb returns duplicate posts
- How to avoid duplicates when creating recent network posts
- How to show an entire post content and not also the excerpt?
- Get latest post from all categories except one
- What file have I to create in my custom WordPress theme to show all the post belonging to a specific category?
- Update post title from external file?
- Parse error: syntax error, unexpected end of file
- stripping tags from excerpt in WordPress is not working
- Change product_base programmatically
- Automatically add images to a menu
- Why is a wp function used in current PHP namespace’s callback not resolved to global scope?
- Load Posts on Click via Ajax into a DIV
- How to catch wordpress post ID when it’s published
- set post limit at load more ajax wordpress
- WordPress query undefined offset in loop
- Divi change project category slug
- Find Site ID From WP_Post
- WP_Query: getting posts where custom field exists
- Seo Friendly Filter URLs
- How to add no follow to specific links?
- Array to string conversion on array_map
- Store metakey value as an array
- Increment paged on WP_Query
- Only show first image in foreach loop
- WordPress yoast seo plugin – parse snippet var in meta description
- How to use mysql LIKE with wpdb?
- Reading settings in the home page precisely home.php
- Do I need to edit my theme in order to change the title of my blog page?
- Add new post in existing categories using wp_insert_post
- Custom post type permalinks do not appear using the link functions
- WordPress upload file size error even after raising php limits