View Single Post
Old 12th May 2007, 20:47
radim_h radim_h is offline
Senior Member
Join Date: Jan 2007
Location: Prague, Czech
Posts: 426
Thanks: 34
Thanked 26 Times in 21 Posts
Send a message via ICQ to radim_h
Default better one

rewrite thru http:// in previous post makes not neccessary overhead, better one will be rewrite on filesystem:

RewriteRule ^/(.*)$ /var/www/www.%2/user/%2_%1/web/$1 [L]

it should be nice to have it in /etc/httpd/conf/vhosts/Vhosts_ispconfig.conf
together with
AliasMatch ^/~([^/]+)(/(.*))? /var/www/webXX/user/$1/web/$3
AliasMatch ^/users/([^/]+)(/(.*))? /var/www/webXX/user/$1/web/$3
(btw: what are this aliases for?)

Is it possible to put it somewhere in the code to create rewrite automatically for each VirtualHost?

Last edited by radim_h; 12th May 2007 at 20:55.
Reply With Quote