• We value your experience with Plesk during 2025
    Plesk strives to perform even better in 2026. To help us improve further, please answer a few questions about your experience with Plesk Obsidian 2025.
    Please take this short survey:

    https://survey.webpros.com/

Roundcube URL Trailing Slash Requirement

G J Piper

Regular Pleskian
I'm not sure if this happens to anyone else, but there is an improvement that could be done to the Roundcube functionality.

In my Plesk 12.5 installation, with Roundcube webmail enabled, the server gives an error if a customer goes to their webmail using the following URL without a slash at the end: http://webmail.customersdomainname.ext/roundcube

Here is the easy fix that hopefully the Plesk crew can add to their default server configs:

In this file:
/etc/httpd/conf/plesk.conf.d/roundcube.htaccess.inc

Add this code directly after the "RewriteEngine On":
RewriteCond %{HTTPS} =on
RewriteCond %{REQUEST_URI} ^/roundcube$
RewriteRule ^(.*)$ https://%{HTTP_HOST}/roundcube/ [R=301,L]
RewriteCond %{HTTPS} !=on
RewriteCond %{REQUEST_URI} ^/roundcube$
RewriteRule ^(.*)$ http://%{HTTP_HOST}/roundcube/ [R=301,L]



Hope this helps someone.
 
Back
Top