I'm not exactly sure RewriteRule accepts all sorts of regex, such as "?". But if so, I guess the following should do: RewriteRule ^/projects/design/(.?) http://www.mydoma.in/~michael/$1 [P] And below: RewriteRule ^/projects/design/ - [F] Or even: RewriteRule .* - [F] That would make a call to any script available, but trying to access root directory return a "Forbidden" response... Olivier CHIROUZE I&0 Infrastructure Volvo Information Technology > -----Original Message----- > From: Florian Effenberger [mailto:floeff@xxxxxxxx] > Sent: 31 January 2007 00:37 > To: users@xxxxxxxxxxxxxxxx > Subject: suEXEC and RewriteRule > > Hello, > > I have some virtual sites where UserDirs like /~michael should be > available under a different name, like /projects/design. These > directories contain CGI scripts run by suEXEC, which results in 500 > Internal Server error when NOT being called as /~michael. > > Right now, I do > > RewriteRule ^/projects/design/(.*) > http://www.mydoma.in/~michael/$1 [P] > > However, in Directory Listings (of course) the ~michael > address is shown. > > Is there a more elegant way of doing this other than patching suEXEC? > > Thanks > Florian > > --------------------------------------------------------------------- > The official User-To-User support forum of the Apache HTTP > Server Project. > See <URL:http://httpd.apache.org/userslist.html> for more info. > To unsubscribe, e-mail: users-unsubscribe@xxxxxxxxxxxxxxxx > " from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx > For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx > --------------------------------------------------------------------- The official User-To-User support forum of the Apache HTTP Server Project. See <URL:http://httpd.apache.org/userslist.html> for more info. To unsubscribe, e-mail: users-unsubscribe@xxxxxxxxxxxxxxxx " from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx