I have added these lines in my 000-default virtual host file:
Alias /antoniocs/project "/home/antoniocs/www/project"
<Directory "/home/antoniocs/www/project">
Options Indexes FollowSymLinks MultiViews
AllowOverride All
Order allow,deny
allow from all
</Directory>
/home/antoniocs/www/project Contains a drupal website
If I go to:
localhost/antoniocs/project
This works out fine. I see everything perfectly.
But when I try to click on a link that takes me, for example, to:
localhost/antoniocs/project/category
I get this error:
Not Found
The requested URL
/home/antoniocs/www/project/index.php
was not found on this server.
Is this not processing the .htaccess that is in the project folder? What am I doing wrong???
NOTE: I also find it strange that it's giving me a file path and not an url path
Running on Apache 2.2.16 (with mod rewrite) Ubuntu 10.10 php 5.3.3-1ubuntu9.1
EXTRA NOTE:
For those that don't know drupals htaccess, it redirects everything to index.php?q=$1
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_URI} !=/favicon.ico
RewriteRule ^(.*)$ index.php?q=$1 [L,QSA]
Best Answer
I know this is a very old post but I thought this information I found on another StackExchange site might be of assistance.
When using an
alias
in your apache configuration you also need to useRewriteBase
in your .htaccess file that's the same as the alias.Requires that you include...
I actually noticed it on a project because there was a rewrite going on with images/js/css and all my supplemental files were not loading.