Slug-Free Permalinks – Simple ID-Based URLs

توسط

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

You can choose between:

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

The plugin only affects the post types and taxonomies you enable in the settings screen.

Features:

  • Select individual public post types
  • Select individual public taxonomies
  • 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
  • Preserve prefixed permalink bases such as /en/ when another plugin adds them
  • Flush rewrite rules automatically when settings change

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/

Development repository: https://github.com/1008k/slug-free-permalinks

This plugin is best suited to new sites, sites still defining their permalink policy, or structured-content use cases where slug management is unnecessary.

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.

Known limitations:

  • If a post type slug and taxonomy slug are identical, their ID-based rewrite patterns can conflict.
  1. In the WordPress admin screen, go to Plugins > Add New.
  2. Search for Slug-Free Permalinks.
  3. Click Install Now, then activate the plugin.
  4. Go to Settings > Slug-Free Permalinks.
  5. Choose a permalink format.
  6. Check the post types and taxonomies you want to convert to ID-based permalinks.
  7. Optionally enable legacy permalink redirects.
  8. Save changes.

If you prefer manual installation, upload the plugin folder to /wp-content/plugins/ and activate it from the Plugins screen.

سوالات متداول

Does this change every post type automatically?

No. Only the post types and taxonomies you check in the settings screen are affected.

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.

This keeps the plugin lightweight and predictable.

Why not attempt slug lookups for every 404?

Performing slug lookups on every 404 can introduce unnecessary database queries and unpredictable behavior.

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?

This is not recommended.

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/.

×
نظری برای این آیتم موجود نیست.
0 0 رای ها
امتیازدهی
اشتراک در
اطلاع از
0 نظرات
قدیمی‌ترین
تازه‌ترین بیشترین رأی
بازخورد (Feedback) های اینلاین
مشاهده همه دیدگاه ها
نسخه حجم فایل SHA256 تغییرات دانلود
1.4.7 17 کیلوبایت -
دانلود
×
بدون امتیاز

قیمت:

رایگان

نگارش

1.4.7

آخرین انتشار

16 اردیبهشت 1405

آخرین بروزرسانی

2 ماه پیش

نصب های فعال

-

نگارش وردپرس

وردپرس 5.8+

تست شده از نسخه

وردپرس 7.0

نگارش PHP

PHP 7.4+

نسخه ها

1 نسخه