Slug-Free Permalinks – Simple ID-Based URLs

説明

Slug-Free Permalinks lets you switch selected post types and taxonomies to simple ID-based permalink formats.

次の形式から選べます:

  • /post/123/
  • /post-123/

このプラグインが影響するのは、設定画面で有効にした投稿タイプとタクソノミーだけです。

特徴:

  • 公開投稿タイプを個別に選択
  • 公開タクソノミーを個別に選択
  • Choose slash or hyphen based ID permalink format
  • Optionally redirect legacy slug URLs to the current ID-based permalink when WordPress can resolve the request
  • 他のプラグインが追加する/en/のような接頭辞付きパーマリンクベースを維持
  • 設定変更時にリライトルールを自動フラッシュ

This plugin is focused on permalink structure only. It does not add content features or front-end UI.

Plugin page (English): https://happas.jp/en/slug-free-permalinks/
Plugin page (Japanese): https://happas.jp/slug-free-permalinks/

開発リポジトリ: https://github.com/1008k/slug-free-permalinks

このプラグインは、新しく立ち上げるサイトや、パーマリンク方針をまだ固めている途中のサイト、スラッグ管理が不要な構造化コンテンツに向いています。

If your site already has a large number of published posts and established slug based URLs, review the impact carefully before enabling it. Check existing inbound links, search traffic, social shares, and editorial workflow assumptions.

既知の制限事項:

  • If a post type slug and taxonomy slug are identical, their ID-based rewrite patterns can conflict.

スクリーンショット

  • Settings screen for choosing the ID permalink format, target post types, target taxonomies, and optional legacy redirect behavior.

インストール

  1. In the WordPress admin screen, go to Plugins > Add New.
  2. Slug-Free Permalinksを検索します。
  3. 今すぐインストールをクリックし、その後プラグインを有効化します。
  4. 設定 > Slug-Free Permalinksを開きます。
  5. パーマリンク形式を選びます。
  6. Check the post types and taxonomies you want to convert to ID-based permalinks.
  7. 必要に応じて旧パーマリンクのリダイレクトを有効にします。
  8. 変更を保存します。

手動でインストールする場合は、プラグインフォルダーを/wp-content/plugins/にアップロードし、プラグイン画面から有効化してください。

FAQ

Does this change every post type automatically?

いいえ。設定画面でチェックした投稿タイプとタクソノミーだけが対象です。

Does it redirect every old slug URL?

No. Slug-Free Permalinks avoids aggressive 404 slug guessing.
Redirects only run when WordPress can already resolve the request.

その結果、プラグインを軽量で予測しやすい状態に保てます。

Why not attempt slug lookups for every 404?

404のたびにスラッグを検索すると、不要なデータベースクエリが増えたり、挙動が予測しにくくなったりする可能性があります。

The plugin prioritizes performance and compatibility with WordPress routing.

Does it support pages?

No. Pages are intentionally excluded to avoid conflicts with typical WordPress page permalink structures.

Does it support taxonomies too?

Yes. Public taxonomies with UI support can be switched to the same ID-based format.

Can a post type and taxonomy share the same slug?

この構成は推奨されません。

If a custom post type and a taxonomy share the same slug, WordPress rewrite rules may conflict.

Does it work with Polylang or language-directory URLs such as `/en/`?

Yes. The canonical ID-based permalink stays rooted at the site home, and language-directory plugins can add their own prefix on top of that.

For example, the plugin keeps using /post/123/ as the base shape, while Polylang style setups can expose /en/post/123/ and /en/category/45/.

評価

このプラグインにはレビューがありません。

貢献者と開発者

Slug-Free Permalinks – Simple ID-Based URLs はオープンソースソフトウェアです。以下の人々がこのプラグインに貢献しています。

貢献者

“Slug-Free Permalinks – Simple ID-Based URLs” は1ロケールに翻訳されています。 翻訳者のみなさん、翻訳へのご協力ありがとうございます。

“Slug-Free Permalinks – Simple ID-Based URLs” をあなたの言語に翻訳しましょう。

開発に興味がありますか ?

コードを閲覧するか、SVN リポジトリをチェックするか、開発ログRSS で購読してみてください。

変更履歴

1.4.7

  • Fix sitemap and indexing compatibility so permalink integrations receive canonical ID-based URLs consistently

1.4.6

  • WordPress 7.0 との互換性を確認

1.4.5

  • 内部のパーマリンク処理の一貫性を改善

1.4.4

  • Keep canonical ID permalinks consistent with or without Polylang
  • /en/のような言語ディレクトリ接頭辞のサポートを継続

1.4.3

  • Preserve Polylang and language-directory permalink prefixes for ID-based URLs
  • Accept prefixed ID routes such as /en/post/123/ and /en/category/45/

1.4.2

  • Add a guarded Japanese l10n PHP translation file for Plugin Check compatibility
  • Update distribution package for the latest Plugin Check fixes

1.4.1

  • Remove unnecessary manual translation loading to satisfy current Plugin Check guidance
  • Refine FAQ and release packaging workflow

1.4.0

  • プラグイン名をSlug-Free Permalinksに変更
  • Add WordPress.org readme and distribution metadata
  • Add optional legacy slug redirect setting

1.3.4

  • Add optional redirect from legacy slug URLs to the current ID-based permalink

1.3.3

  • タクソノミー対応と、スラッシュ形式またはハイフン形式の選択機能を追加