Redirect from site/?p=number to site/post.html

[ad_1]

Hello everyone, I have every post available at two URLs and

I thought there should be automatic redirection from pages of the type ?p=10506 to a URL that corresponds to the structure of permalinks. But no. How to fix it? Write a rule in .htaccess? But what should I write in the RewriteRule if I don’t know the name of a specific post?

As for permalinks, /%postname%.html is already configured there

[ad_2]
1 Comment

 

This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer