rewrite not working inside alias

rewrite not working inside alias

am 11.11.2009 12:15:31 von joydeep

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/


DirectoryIndex index.php
Options Indexes FollowSymLinks MultiViews
AllowOverride All
Order allow,deny
allow from all

```````````````````````````````````````````````````````````` ````

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

Re: rewrite not working inside alias

am 11.11.2009 12:22:06 von Philip Wigg

I think you need to look at:-

http://httpd.apache.org/docs/2.2/mod/mod_rewrite.html#rewrit ebase

Or just put the rewrite httpd.conf, you don't seem to require an .htaccess?

------------------------------------------------------------ ---------
The official User-To-User support forum of the Apache HTTP Server Project.
See 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

Re: rewrite not working inside alias

am 12.11.2009 04:11:16 von joydeep

Philip Wigg wrote:
> I think you need to look at:-
>
> http://httpd.apache.org/docs/2.2/mod/mod_rewrite.html#rewrit ebase
>
> Or just put the rewrite httpd.conf, you don't seem to require an .htaccess?
>
>
No luck :-( I have put

````
RewriteBase /var/personal_work_area/joydeep

````

at .htaccess but no success. I have also tried to put the same in apache
configuration as

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

DocumentRoot /var/personal_work_area/


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

`````````````````````

failure :-(



------------------------------------------------------------ ---------
The official User-To-User support forum of the Apache HTTP Server Project.
See 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

Re: rewrite not working inside alias

am 12.11.2009 12:30:55 von Eric Covener

On Wed, Nov 11, 2009 at 10:11 PM, J. Bakshi wrote=
:
> Philip Wigg wrote:
>> I think you need to look at:-
>>
>> http://httpd.apache.org/docs/2.2/mod/mod_rewrite.html#rewrit ebase
>>
>> Or just put the rewrite httpd.conf, you don't seem to require an .htacce=
ss?
>>
>>
> No luck :-( =A0 =A0I have put
>
> ````
> RewriteBase =A0/var/personal_work_area/joydeep

It's a URL path, not a filesystem path.

--=20
Eric Covener
covener@gmail.com

------------------------------------------------------------ ---------
The official User-To-User support forum of the Apache HTTP Server Project.
See 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