Re: [users@httpd] rewrite not working

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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



[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux