Tuesday 30 May 2006 11:44:08 pm
Hi Siw, You can write simple workflow event (triggered after publish) then setup new virtual forwarding (look on code in the kernel/content/urltranslator.php). The process will be automaticaly. But when portal will have 20 000 registered users the list can be quite long ;) mod_rewrite should do the trick. With one additional rule you can redirect users to the user group:
RewriteRule ^(/+[a-z]+\_+[a-z]+)$ /users/administrator_users$1 [R=301,L]
http://example.com/administrator_user -> http://example.com/users/administrator_users/administrator_user This will work but can cause problem when you have e.g folder with the same name pattern (aaa_bbb), so unique pattern for user object name should solve it (and pattern for re_write which match it). Try extend this example. Good luck!
Cheers, Lukasz
Personal website -> http://serwatka.net
Blog (about eZ Publish) -> http://serwatka.net/blog
|