httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Joshua Slive" <>
Subject Re: [users@httpd] rewrite not working
Date Thu, 05 Oct 2006 13:51:32 GMT
On 10/5/06, Tony Heal <> wrote:
> I want (the base directory path is
> /var/www/twiki) to go to (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)


The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:> for more info.
To unsubscribe, e-mail:
   "   from the digest:
For additional commands, e-mail:

View raw message