Redirect from web root to web root/webmail

Hello all, I have an email server running on X.4, and I am using squirrel mail for webmail. What is the best way for me to configure my computer so that when someone goes to mysite.com, it automatically redirects to mysite.com/webmail?

TIA!

Apple IIc, Mac OS X (10.4.8), 70 Macs, 100 PC's

Posted on Jun 12, 2007 12:01 PM

Reply
6 replies

Jun 12, 2007 2:25 PM in response to Cerdafied

> so would I just click the + is the URL Aliases and Redirects, select Redirect as the Type, type in "/" as the Pattern, and "/webmail/" as the Path?

That should work, yes.

> My webmail redirects to webmail/src/login.php. Shoud I make the Path "/webmail/src/" then instead?

There shouldn't be any need to do that. The Webmail system handles the redirect to the login page and you should probably leave that prt intact.

Jun 12, 2007 5:43 PM in response to Camelot

Camelot, thank you sir. I tried just that and got the following error:

A service has encountered an error. Try to refresh the view (Myserver/Web). Report the problem... (could not start web service - details in error log).

I checked my error log and I see that there is a syntax error on line 35 of /etc/httpd/sites/ longfilename.conf. Directly below it says "Redirect to non-URL". Hmm I must have misconfigured this thing somehow. If that makes any sense to you, I would appreciate the insight. Otherwise, I might have to try something different.

Thanks again.

Jun 12, 2007 8:22 PM in response to Cerdafied

>A service has encountered an error. Try to refresh the view (Myserver/Web). Report the problem... (could not start web service - details in error log).

My bad - I didn't read closely enough.

The redirect has to be to a URL, not a relative path, so you'll need to include the http://your.server.net/ part in the redirect target.

You might also need to be more explicit on the match - the docs indicate that URIs that start with the string are redirected. Since every URI is going to start with / you'll be in an endless redirect.

Try changing the pattern to ^/$ (which will match exactly / as opposed to anything that begins with /).

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

Redirect from web root to web root/webmail

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.