I tried setting up in the apache aliases/redirect on “url redirects” “from - /horde to - http://mail.mydomain.tld” but that didn’t work. It still shows up my main page in mail.mydomain.tld instead of showing my horde login page.
Thanks for the reply. In the from section, I entered exactly what you said and also in the To section and that didn’t work. I then tried to enter the following in the From section:
/horde/([^/])($) and in the To section http://mail.mydomain.tld/horde and I still see my main index page when I go to mail.mydomain.tld instead of the horde
Just to be sure, after entering those, did you hit both "Save" at the bottom of the Redirects and Aliases page, then "Apply" at the top-right of the screen?
-Eric
Actually, that caused a problem. It does the redirect to my horde but now if I go to www.mydomain.tld, that also takes me to my horde when that should actually point to my main page and not horde
Well, if it’s causing a problem, go ahead and remove what you added in, hit save, then apply again and it should be back to the way it was.
In regards to what ^/$ is – that’s a regular expression. It’s searching the URL string to see if it contains only a “/” character.
The ^ is a special character meaning beginning of the string, and $ represents the end of the string.
So technically, it’s searching for 3 things – the beginning of the string, immediately followed by a / character, immediately followed by the end of the string.
In regards to the redirection you’re trying to do – I think I might be confused as to what you’re looking to accomplish, maybe you can help me figure out where I’m going awry.
As an aside, you’re making changes to your Apache config – I’d make sure you have a backup of it handy before making changes in case something doesn’t go as expected
-Eric
Pretty close. www.mydomain.com now goes fine to my main page but the redirect rule in apache didn’t work quite well. I get this error from firefox:
Redirect Loop
Firefox has detected that the server is redirecting the request for this address in a way that will never complete.
The browser has stopped trying to retrieve the requested item. The site is redirecting the request in a way that will never complete.
* Have you disabled or blocked cookies required by this site?
* NOTE: If accepting the site's cookies does not resolve the problem, it is likely a server configuration issue and not your computer.
I will try this. Looking at my log file with the previous code in the directives was growing my access_log file enormously. It was up to 1.4M in less than 5 mins…YIKES!!..lol
Hrm, I don’t see mail.domain_name.com listed in there anywhere as a server alias. That leads me to suspect that it’s not in a virtual host anywhere, and that mail.domain_name.com always points to the default virtual server on your box.
That’s okay, I’m just thinking out loud so you can make sure I’m on track
If that’s the case, I might add this to your “Edit Directives” section, immediately after the line “DirectoryIndex index.html index.htm index.php index.php4 index.php5”:
Hrm, I don’t see mail.domain_name.com listed in there anywhere as a server alias. That leads me to suspect that it’s not in a virtual host anywhere, and that mail.domain_name.com always points to the default virtual server on your box.
That’s okay, I’m just thinking out loud so you can make sure I’m on track
If that’s the case, I might add this to your “Edit Directives” section, immediately after the line “DirectoryIndex index.html index.htm index.php index.php4 index.php5”:
We don’t want all requests going to mail.your_domain.com being redirected, only those going to “/” – and adding in the above REQUEST_URI condition should fix that.
-Eric