Take the 2-minute tour ×
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

The setup:
I have two Wordpress installations. One in the root of the Server and one in a subdirectory, every installation has it's own database. The subdirectory installation is connected with a subdomain.

The problem:
In the subdirectory installation, no images show up - even in the admin menu. I checked the paths and they were correct. I also checked for writing permissions, everything is fine. So the images are all in place, the upload also works but when trying to access the images, I get the 404 page of the subdirectory install (/blog is the folder name).

What I think:
My guess is that the .htdocs file in the root actually blocks access to the /blogs subdirectory or something like that.
Of course I already did a Google search, but that didn't help much. The Codex article Giving WordPress Its Own Directory actually seems helpfull, but I can't move the subdirectory's index.php into the root as this would clash with the Wordpress installation there.
How to fix my problem?

Edit At the moment I am not so sure about the .htaccess anymore. When I try to access blog.mydomain.com/wp-content/uploads/2013/06/logo.jpg (blog.mydomain.com is the subdomain) I get a 404. But accessing mydomain.com/blog/wp-content/uploads/2013/06/logo.jpg everything is fine. So maybe I just have to set Wordpress to a different path somehow?

share|improve this question
    
What is in your root .htaccess? You mention "write" permissions. What about "read" permissions? –  s_ha_dum Jun 1 '13 at 19:12
    
@s_ha_dum Ok I think the problem is a different one, please see my edit. –  Sven Jun 2 '13 at 16:30
    
Now it sounds like a subdomain configuration issue. That is server level. How did you set that up? –  s_ha_dum Jun 2 '13 at 16:41
    
@s_ha_dum Well in the root of my server I have an installation. Also in the root is a folder "blog" with another installation. Both installations use different databases. In the control panel of my host I just routed the subdomain "blog.mydomain.com" to the folder "blog". –  Sven Jun 2 '13 at 16:45
    
But the working URL indicates that the subfolder is blogm not blog. It would help if you'd provide real URLs and not domain.com fake ones (if possible). –  s_ha_dum Jun 2 '13 at 16:50
show 1 more comment

1 Answer 1

Re Install the WordPress core files (minus the wp-config.php and the wp-content directory) then run from the parent directory: sudo chmod -R g+rw blog/

share|improve this answer
    
Hey, I made an edit to my post, maybe you can take a look at it? I don't think it has anything to do with permissions anymore. –  Sven Jun 2 '13 at 16:33
add comment

Your Answer

 
discard

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

Not the answer you're looking for? Browse other questions tagged or ask your own question.