I can see a few problems with your mod_rewrite attempt. I'm pretty sure that mod_rewrite only operates on urls, not actual directories, so you don't need the "/home/...". Also, you can "Pass Through" the modified URL to apache instead of forcing an external "Redirect". Try something like this:
RewriteEngine on RewriteCond $1 !^/mike RewriteRule ^(.*)$ /mike$1 [PT] This says "for every uri that does not begin with /mike, add /mike to the beginning and pass it through to apache" Now if you have an /img directory that you want to serve straight from apache, instead of wasting Webware resources on it, use this: RewriteEngine on RewriteRule ^/img(.*) - [L] RewriteCond $1 !^/mike RewriteRule ^(.*)$ /mike$1 [PT] The new earlier rule says "if the uri begins with /img, leave it untouched and don't process any more rules" Also see: http://webware.colorstudy.net/twiki/bin/view/Webware/ModRewriteRecipes and: http://httpd.apache.org/docs/mod/mod_rewrite.html#RewriteRule -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Michael Montagne Sent: Wednesday, December 18, 2002 9:18 AM To: [EMAIL PROTECTED] Subject: [Webware-discuss] Document Root The questions around here are far too technical these days. I'm offering this one up for people to relax their brains a bit. I have a URL that I have built my webkit site on www.myurl.com/mike. What I need is to remap all requests to www.myurl.com to use www.url.com/mike. I've tried RewriteEngine on RewriteRule ^/$ /home/me/Webware/mike/ [R] and seen the post from a few days ago regarding Actions. All my images and everything is in /home/me/Webware/mike also, so I can't just move Main.py to my document root. I'm a bit confused over what I'm sure is a simple exercise. Is there a downside to doing what I'm doing? What is the common technique. BTW, Apache 1.3x on Debian Linux. -- Michael Montagne [EMAIL PROTECTED] http://www.themontagnes.com ------------------------------------------------------- This SF.NET email is sponsored by: Order your Holiday Geek Presents Now! Green Lasers, Hip Geek T-Shirts, Remote Control Tanks, Caffeinated Soap, MP3 Players, XBox Games, Flying Saucers, WebCams, Smart Putty. T H I N K G E E K . C O M http://www.thinkgeek.com/sf/ _______________________________________________ Webware-discuss mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/webware-discuss ------------------------------------------------------- This SF.NET email is sponsored by: Order your Holiday Geek Presents Now! Green Lasers, Hip Geek T-Shirts, Remote Control Tanks, Caffeinated Soap, MP3 Players, XBox Games, Flying Saucers, WebCams, Smart Putty. T H I N K G E E K . C O M http://www.thinkgeek.com/sf/ _______________________________________________ Webware-discuss mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/webware-discuss
