Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have a wp blog which lives under /var/www/ and is accessible via

When visiting I see the index page, but all links on subdirectories are no longer working eg: is throwing (apache log):

File does not exist: /var/www/, 


Alias /blog "/var/www/"
<Location "/blog">
    Allow from all
    AddType application/x-httpd-php php php4 php3 html htm

.htacess in /blog dir:

# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /blog/
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /blog/index.php [L]

# END WordPress

How can I fix that?

share|improve this question
Does the configuration work when you put it inside the main config instead of .htaccess, and do you have an AllowOverride directive allowing the use of .htaccess files? – Shane Madden Aug 13 '12 at 4:19
Shane's comment is likely to be the solution. – user130370 Aug 13 '12 at 9:31

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.