[horde] Pretty URLs
Aleksey Chudov
aleksey at bb.lv
Mon Nov 24 09:31:53 UTC 2008
I solve my problem using simple _imp_hook_postlogin:
if (!function_exists('_imp_hook_postlogin')) {
function _imp_hook_postlogin($actionID, $isLogin)
{
$vdomain = getenv('HTTP_HOST');
if ($_SERVER['HTTPS'] = 'on') {
header('Location: https://' . $vdomain .
$GLOBALS['registry']->get('webroot', 'horde'));
} else {
header('Location: http://' . $vdomain .
$GLOBALS['registry']->get('webroot', 'horde'));
}
exit;
}
}
Now I always see "https://mail.example.com/horde/" after login.
> Michael Rubinsky <mrubinsk at horde.org> a écrit :
>
>>
>> Quoting Aleksey Chudov <aleksey at bb.lv>:
>>
>>>
>>>>> Hello!
>>>>>
>>>>> I try to configure pretty URLs in Horde, but can't find any useful
>>>>> information.
>>>>> I specify $conf['urls']['pretty'] = 'rewrite'; in configuration
>>>>> file but nothing changes.
>>>>>
>>>>> How to configure pretty URLs in Horde?
>>>>
>>>> First of all, you should be aware that these are not supported in
>>>> every application - what application are you expected to see them
>>>> in?Second, I am assuming that you are using Apache and that you
>>>> have mod_rewrite enabled. If your not using Apache you need to make
>>>> sure that your webserver's rewrite engine is active and that it has
>>>> appropriate rules defined. There are example rewrite rules for
>>>> lighttpd in the docs directory of the applications that support
>>>> this setting.
>>> I have Apache web server with mod_rewrite enabled.
>>> I try to "grep -d recurse 'RewriteRule' ./horde" to find all
>>> .htaccess files with rewrite rules in horde directory and found only
>>> the following files:
>>>
>>> horde/rpc/.htaccess
>>> horde/kronolith/feed/.htaccess
>>>
>>> Is it right?
>>
>> It might be, depending on what applications you have installed.
>>
>>
>>> I have Horde Groupware Webmail Edition and Password applications.
>>
>> Yes, I believe the only app in Groupware that has any rewrite rules
>> is Kronolith at the moment.
>
> whups uses URL rewriting as well but it doesn't have a .htaccess file.
> It can be created using rules from whups/doc/lighttpd-whups.conf
>
> Ronan.
More information about the horde
mailing list