N
N
Nikita2021-07-02 22:21:59
PHP
Nikita, 2021-07-02 22:21:59

How to add .php extension with parameter to post URLs in Wordpress?

Hello! I am transferring the old site from a self-written engine to the Wordpress CMS and faced such a problem that on the old site all the urls look like this:
https://site.ru/page.php?page_id=92
On the new site it is very important for me to keep the same urls, making 301 redirects to new addresses is very There are also external links.
In the settings of permalinks in Wordpress, I did this:
/page.php?id=%post_id%
But it does not work, I get 404 pages.
Please, tell me, can someone already solved this problem?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
Stalker_RED, 2021-07-03
@Stalker_RED

mod_rewrite

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question