Skip to content

Latest commit

 

History

History
46 lines (34 loc) · 1.32 KB

permalinks.md

File metadata and controls

46 lines (34 loc) · 1.32 KB

application.permalinks

Set application permalinks options.

Options;

<?php

return [
    'application.permalinks' => [
        'structure' => (string) $tags,
        'category-base' => (boolean|string) false|$category_base_path,
        'tag-base' => (boolean|string) false|$tag_base_path,
        'search-base' => (boolean|string) true|$search_base_path
    ],
];

Example;

<?php

return [
    'application.permalinks' => [
        'structure' => '/%postname%/',
        'category-base' => 'category',
        'tag-base' => 'tag',
        'search-base' => 'search',
    ],
];
  • Setting 'permalinks.search-base' => true will change the default WordPress search permalink structure from ?s={query} to /search/{query}

Further Reading;

Bug?