Support » Fixing WordPress » WP rocket prevent 301 redirect to URL with trailing slash

  • When user access to my website with url:

    example.com/post-name

    Wordpress should perform 301 redirect to:

    example.com/post-name/

    But it’s not working due the WP Rocket caching plugin (I couldn’t find out why this is happening, but WP rocket is definitely causing problem)

    Is it okay to perform wp_redirect to url with trailing slash? Is there any other solution except .htaccess redirect?

    • This topic was modified 2 weeks, 1 day ago by t-p. Reason: Moved to Fixing WordPress from Accessibility
Viewing 2 replies - 1 through 2 (of 2 total)
  • Moderator t-p

    (@t-p)

    Since you use a commercial plugin and need support, please go to their official support channel. In order to be good stewards of the WordPress community, and encourage innovation and progress, we feel it’s important to direct people to those official locations.

    https://wp-rocket.me/

    Forum volunteers are also not given access to commercial products, so they would not know why your commercial theme or plugin is not working properly. This is one other reason why volunteers forward you to the commercial product’s vendors. The vendors are responsible for supporting their commercial product.

    Commercial products are not supported in these forums.

    Thread Starter Shabroz Ahmed

    (@shabroz)

    Is there any other way to redirect example.com/post-name to example.com/post-name/ except .htaccess redirect?

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