httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "J. Bakshi" <joyd...@infoservices.in>
Subject [users@httpd] rewrite not working inside alias
Date Wed, 11 Nov 2009 11:15:31 GMT
Hello list,

I am running debian lenny box with apache2 and mod_rewrite enabled.  I
confirm that rewrite rules are working well with the default /var/www 
directory which is my document root.   I have one more  config with
alias like

`````````````````````````````````````````````````
 Alias /personal/joydeep  /var/personal_work_area/joydeep

DocumentRoot  /var/personal_work_area/

        <Directory /var/personal_work_area/joydeep/>
                 DirectoryIndex index.php
                Options Indexes FollowSymLinks MultiViews
                AllowOverride All
                Order allow,deny
                allow from all
        </Directory>
````````````````````````````````````````````````````````````````

and the .htaccess is as below

`````````````````````````````````````````````
Options +FollowSymLinks
RewriteEngine On
RewriteRule ^alice.html$ bob.html
``````````````````````````````````````````````

the page bob.html works fine. But when I visit alice.html  as 
http://192.168.1.1/personal/joydeep/test/alice.html
it reports

``````````````
The requested URL /index.php was not found on this server.
```````````````````

Though the same thing work well under /var/www .  I am really confused
here. Could any one please enlighten me ? any mistake ?

Thanks for bearing with me.

---------------------------------------------------------------------
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