View Single Post
Old 12th May 2007, 19:47
radim_h radim_h is offline
Senior Member
Join Date: Jan 2007
Location: Prague, Czech
Posts: 420
Thanks: 33
Thanked 24 Times in 19 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 19:55.
Reply With Quote