Tiu ĉi kromprogramo ne estis testita en la 3 lastaj gravaj eldonoj de WordPress. Eble ĝi ne plu estas prizorgata kaj ĝi eble havus kongruajn problemojn en novaj versioj de WordPress.

Permalink Trailing Slash Fixer

Priskribo

When your permalink structure does not end by a trailing slash (/), all your links look like http://example.com/2009/05. Permalink Trailing Slash Fixer add the missing trailing slash.

Example

If you have a site with the following permalink structure /%category%/%postname%.html and your permalinks
look like these:

  1. Single Post: http://example.com/my-category/sample-post.html.
  2. Category: http://example.com/my-category.
  3. Archive: http://example.com/2009/05.
  4. Page: http://example.com/about.

After activation of the plugin:

  1. Single Post: not modified.
  2. Category: http://example.com/my-category/.
  3. Archive: http://example.com/2009/05/.
  4. Page: http://example.com/about/.

Instalo

Upload the Permalink Trailing Slash Fixer plugin to your blog, Activate it.
Enjoy 🙂

Pritaksoj

Novembro 7, 2017
Not sure why wordpress prefers the ‘no slash’ approach. But I like a good slash at the end of a URL. This plugin is great. Fixed the problem on my sites in a few seconds. Brilliant! Thanks!
Legi ĉiujn 3 pritaksojn

Kontribuantoj k. programistoj

“Permalink Trailing Slash Fixer” estas liberkoda programo. La sekvaj homoj kontribuis al la kromprogramo.

Kontribuantoj

Traduki “Permalink Trailing Slash Fixer” en vian lingvon.

Ĉu interesita en programado?

Browse the code, check out the SVN repository, or subscribe to the development log by RSS.