• Hi,

    I have two issues:

    First, All custom slugs created with your plugin lack a trailing slash. Is there a way to add a trailing slash to all permalinks?

    Secondly, your plugin is not compatible with WP-Rocket. This was the response I received when I contacted their support:

    “The issue is caused by the Custom Permalinks plugin.

    The Plugin prevents preloading and caching for any URL for which a custom permalink has been created. URLs will get stuck in in-progress state. They hook a function into the template_redirect hook that ends up doing a 301 redirect.

    At the moment Custom Permalinks plugin is not compatible the the WP Rocket.”

    Could you please assist me in resolving these issues? Alternatively, is there a method to integrate custom permalinks directly into the ‘wp-post’ table?

    Best Regards.

Viewing 1 replies (of 1 total)
  • Thread Starter hassadr

    (@hassadr)

    Hi @sasiddiqui,

    I tried to add this snipped code in .hataccess but I got too many redirects error.

    # Force trailing slashes
    RewriteEngine on
    RewriteCond %{REQUEST_URI} !(\.[a-zA-Z0-9]{1,5}|/)$
    RewriteCond %{REQUEST_URI} !(.+)/$
    RewriteRule (.*) %{REQUEST_URI}/ [R=301,L]
    • This reply was modified 1 year, 4 months ago by hassadr.
Viewing 1 replies (of 1 total)
  • The topic ‘Add a trailing slash’ is closed to new replies.