[horde] Pretty URLs

Michael Rubinsky mrubinsk at horde.org
Fri Nov 21 19:40:24 UTC 2008


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.


> After login I always see the following URL:  
> "https://mail.example.com/horde/index.php?url=https%3A%2F%2Fmail.example.com%2Fhorde%2F"
> I can manually change URL to "https://mail.example.com/horde/" and it is OK.

This has nothing to do with the pretty urls setting.


> Then I click on different applications URL is not changes, no meter  
> how "$conf['urls']['pretty']" is configured.

Probably because you are viewing the horde frameset...you won't see  
any url changes in the location bar when viewing a frameset.


> What is the porpose of "$conf['urls']['pretty']" configuration key?


It is to enable the rewrite rules that are defined for the  
application.  For example, in our photo gallery application, Ansel,  
you could use a url like:

http://example.com/horde/ansel/user/bob

instead of

http://example.com/horde/ansel/view.php?groupby=owner&owner=bob&view=List



Thanks,
mike

--
The Horde Project (www.horde.org)
mrubinsk at horde.org

"Time just hates me. That's why it made me an adult." - Josh Joplin


More information about the horde mailing list