Поддержка Проблемы и решения Помогите опять настроить переадресацию ссылок вида (301

  • …настроить переадресацию ссылок вида

    Было/есть
    Castom:…/%post_id%
    http://altervision.org/26624

    на вид (по умолчанию WP)
    Default: …/?p=123
    http://altervision.org/?p=26624

    Я нашел такой инструмент переадресации,
    ссылка https://yoast.com/wp-content/permalink-helper.php
    делаю, пробую…

    в итоге написано вроде как мне надо,
    вставляю в htaccess — нет результата.

    Create Redirects

    Use this tool to generate redirects from your old permalink structure to the /%postname%/ permalink structure.

    Your Redirects
    Add the following redirect to the the top of your .htaccess file:
    RedirectMatch 301 ^/(\d+)$ http://example.com/?p=$1

    Please note that this relies on WordPress to do a second redirect, from the post_id to the post.

Просмотр 1 ответа (всего 1)
Просмотр 1 ответа (всего 1)
  • Тема «Помогите опять настроить переадресацию ссылок вида (301» закрыта для новых ответов.