Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

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

When visiting www.mysite.com/blog/ I see the index page, but all links on subdirectories are no longer working eg: www.mysite.com/blog/my-great-article is throwing (apache log):

File does not exist: /var/www/mysite.com/web/blog/my-great-article, 
     referer: http://www.mysite.com/blog/

vhost:

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

.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]
</IfModule>

# 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. –  Eric DANNIELOU Aug 13 '12 at 9:31
add comment

Your Answer

 
discard

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

Browse other questions tagged or ask your own question.