httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Tony Heal" <th...@pace2020.com>
Subject RE: [users@httpd] rewrite not working
Date Thu, 05 Oct 2006 13:56:23 GMT
That did it, thanks.

Tony

-----Original Message-----
From: jslive@gmail.com [mailto:jslive@gmail.com] On Behalf Of Joshua Slive
Sent: Thursday, October 05, 2006 9:52 AM
To: users@httpd.apache.org; theal@pace2020.com
Subject: Re: [users@httpd] rewrite not working

On 10/5/06, Tony Heal <theal@pace2020.com> 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@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Mime
View raw message