• Inviting everyone who uses WordPress management tools in Plesk
    The Plesk team is conducting a 60-minute research session that includes an interview and a moderated usability test.
    To participate, please use this link .
    Your experience will help shape product decisions and ensure the tools better support real-world use cases.

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