• Dear Pleskians! The Plesk Forum will be undergoing scheduled maintenance on Monday, 7th of July, at 9:00 AM UTC. The expected maintenance window is 2 hours.
    Thank you in advance for your patience and understanding on the matter.

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