View Single Post
  #5  
Old 9th March 2009, 15:38
id10t id10t is offline
Senior Member
 
Join Date: Nov 2008
Posts: 242
Thanks: 2
Thanked 22 Times in 22 Posts
Default

Even better would be a rewrite rule on the webserver level -

Code:
RewriteEngine on
RewriteCond    %{REQUEST_FILENAME}  -d
RewriteRule    ^(.+[^/])$           $1/  [R]
RewriteRule   ^/webmail/  http://webmail.example.com [R,L]
Stick this in the "optional" section at the bottom of the site page in ispconfig and it will take all requests to a directory with no trailing / (this converts /webmail to /webmail/), and then takes /webmail/, and /webmail/* and redirects them to http://webmail.example.com.

Last edited by id10t; 9th March 2009 at 15:48.
Reply With Quote