Support » Plugin: Permalink Manager Lite » Forced Trailing Slash Removes After Cache Primed by WP Rocket

  • Resolved imsuyash

    (@imsuyash)


    I was using WP Rocket as it was giving me very good results in speed.

    All URLs of my website need to have a forced trailing slash [/].

    I have fixed the problem in my .htaccess file too.

    Trailing Slash comes when I delete my cache. But when the cache is primed. Again the pages are loading without trailing slashes too.

    Example, 1. example.com/krishna/ [This is also loading.]
    2. example.com/krishna [This is also loading.]

    I want the 2nd one to be redirected to the first one. Everything seems okay in .htaccess, I’ve tried a lot of plugins to do this still failed.

    I am using Google Cloud Bitnami WordPress.

    I even tried using your plugin but issue still persists.

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Maciej Bis

    (@mbis)

    Hi @imsuyash,

    The problem is in the way WP Rocket caches the URLs. Generally speaking, both URLs (with and without trailing slash) share the same cache. In other words, WP Rocket does not distinguish the URLs with and without the trailing slash.

    Unfortunately, I am not technically able to fix the problem. My plugin uses PHP to trigger the trailing slash redirect and as long as script caching is enabled, there is no possibility to check what version of URL was cached. The PHP function that does the redirect (included my plugin) is cached with WP Rocket.

    The problem that you have reported is still not addressed although it was reported months ago:
    https://github.com/SatelliteWP/rocket-nginx/issues/88

    Did you try to use the solution posted on their website?
    https://docs.wp-rocket.me/article/131-redirection-to-enforce-trailing-slash-on-urls

    Best regards,
    Maciej

    Thread Starter imsuyash

    (@imsuyash)

    Yes, I have used the plugin provided by them. Still the same problem.

    I have tried everything. Please tell the solution brother you are my last hope 🙁

    Moderator Yui

    (@fierevere)

    ゆい

    @imsuyash
    Since Wp-Rocket is a paid plugin, which does not have a support forum section on wordpress.org, why dont you contact Wp-Rocket support ?

    Since that is a commercial theme or plugin, we ask that you please go to their official support channel, so you can get support from the people who know it best.

    Forum volunteers are also not given access to commercial products, so they would not know why it is not working properly. Other community members who may have faced your issue might be able to help you but your best bet is your product’s developer. Keep in mind we encourage you to use the official support venues, as it allows the developers to be aware of issues with their code and gives back to the community in a more robust way.

Viewing 3 replies - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.