That did it, thanks. Tony -----Original Message----- From: jslive@xxxxxxxxx [mailto:jslive@xxxxxxxxx] On Behalf Of Joshua Slive Sent: Thursday, October 05, 2006 9:52 AM To: users@xxxxxxxxxxxxxxxx; theal@xxxxxxxxxxxx Subject: Re: [users@httpd] rewrite not working On 10/5/06, Tony Heal <theal@xxxxxxxxxxxx> wrote: > I want http://192.168.2.106/twiki (the base directory path is > /var/www/twiki) to go to http://192.168.2.106/twiki/bin/view (path is > /var/www/twiki/bin/view). > > But what I am getting is index.html from the base directory path. > > I have changed the conf file to this and still no luck. > <Directory "/var/www/twiki/"> > # Options +FollowSymLinks > # DirectoryIndex index.html > # RewriteRule /index\.html /bin/view [R] > RewriteEngine on > RewriteRule /index\.html /bin/view [R] > Order Allow,Deny > Allow from all > # Deny from env=anonymous_spider > </Directory> Don't use RewriteRules inside <Directory> sections unless you absolutely need to. It just creates confusion. Put the following OUTSIDE any <Directory> section: RewriteEngine On RewriteRule /twiki/index\.html /bin/view [R] (Assuming the full URL-path is /twiki/index.html) Joshua. --------------------------------------------------------------------- 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