WordPress.org

Forums

htaccess causing 404 in ONE directory (WP Multisite) (57 posts)

  1. acollantes
    Member
    Posted 1 year ago #

    Thanks stvwlf, I see.

  2. http://www.iurisonline.com/en/archivos/2012/05/consulte3.jpg doesn't work.

    And neither does http://www.iurisonline.com/en/

    Go ask your webhost if 'Allowoverride' is set to ALL in your httpd.conf.

  3. acollantes
    Member
    Posted 1 year ago #

    I just went back to old http://www.iurisonline.com since clients were complaining a bit.

    If you need the WP site to be worling again, let me know.

  4. Its' really up to you.

    Remember to revert your .htaccess as well, though.

  5. acollantes
    Member
    Posted 1 year ago #

    Yes it's done. Thanks again.

  6. Did you ask your host about AllowOverride?

  7. acollantes
    Member
    Posted 1 year ago #

    No. Sorry, I thought it had to do with the new site not working.

    I'll ask now.

  8. acollantes
    Member
    Posted 1 year ago #

    They say "We are on UNIX platform. There is no httpd.conf file."

  9. ....

    Send them this link

    http://en.wikipedia.org/wiki/Httpd.conf

    httpd.conf is an Apache file, that can be found on Unix OR Windows. But yes. it's on bloody unix. I'm sorry, if your host said exactly that, you're going to have a nightmare getting anything to work, because they just don't know what they're talking about.

  10. acollantes
    Member
    Posted 1 year ago #

    OK. I'll insist about the Allowoverride thing.

    Thanks again

  11. acollantes
    Member
    Posted 1 year ago #

    Things are moving on.

    They are doing some assistance from the host. They seem to have solved the uploading files issue, but now...

    http://www.iurisonline.com
    http://www.iurisonline.com

    don't show the menus font type

    http://www.iurisonline.com/en

    doesn't show any style at all

    https://www.iurisonline.com/ works fine
    https://www.iurisonline.com/en also works fine

  12. acollantes
    Member
    Posted 1 year ago #

    I cannot get to upload files though. But hte truth is that they have uploaded one test image.

    Trying to contact them (unsuccessfully) to see if they give some feedback about all this.

  13. acollantes
    Member
    Posted 1 year ago #

    I see that the url of the image they've uploaded is <img src="http://iurisonline.com/testing.jpg" alt="" width="304" height="228" border="0" /> so they sure have done that manually

    Therefore things are not moving on at all :-(

  14. acollantes
    Member
    Posted 1 year ago #

    Option B

    We cannot aford having our site upsidedown for so long.

    So we will need to hire someone to debug the code and change our old /files folder.

    Nevertheless I wanted to be sure that this would solve the problem. So we erased /files momentaneusly and saw that it didn't work either.

    WP still uploads files to http://www.iurisonline/en/files but I don't see that folder with FTP.

    Upload path is wp-content/blogs.dir/4/files
    Fileupload url is http://www.iurisonline.com/en/files

  15. acollantes
    Member
    Posted 1 year ago #

    For some reason All plugins have disappeared and, when I try to reinstall them, WP is unable to create wp-content/plugins/contact-form-plugin/ folder

    As you said, Ipstenu, a little nightmare.

  16. If you need to hire someone, go to http://jobs.wordpress.net or http://codepoet.com

  17. acollantes
    Member
    Posted 1 year ago #

    Hello again guys,

    I hired the person who designed our web's client area. He has changed the /fles/ folder, and the problem remains exactly the same, that is to say: we cannot upload images to the child site.

    The post generates a url (i.e. http://www.iurisonline.com/en/files/2012/05/agenda-contactos.jpg) which doesn't exist according to FTP.
    The folder is there, with other archives uploaded (maybe in previous attempts), but no nore files can be uploaded now.

    If this is due to the allowoverride thing?, I get the same answer regarding UNIX platforms. I sent the Wikipedia link Ipstenu provided, but they symply don't answer to that.

    Clearly they don't know httpd.conf

    Is there any equivalent to that I could ask for?

    Thanks again

  18. acollantes
    Member
    Posted 1 year ago #

    WP fails to install plugins. It says it failed to create directory wp-content/plugins/blablabla

    May it have anything to do?

    Thanks

  19. It's hard to tell what's wrong, since you've STARTED with a non-standard install. It makes it impossible for us to actually help you test out things.

    Are you getting a specific ERROR when you upload images?

    Did you remember to change the Fileupload URL for the site? If you started over, it got wiped out.

  20. acollantes
    Member
    Posted 1 year ago #

    Ipstenu,

    I don't understand what you mean by starting with a non-standard install. Sorry.

    I don't get any error uploading images. It just doesn't show the pic. But regarding the plugins, I get "It has not been possible to create the folder, let's say /hermes/bosweb26a/b2006/ipg.alejandroco/wp-content/plugins/twitter-goodies/

    I did not change the fileupload url now, since I don't have a /files folder anymore.

    Thanks for your patience

  21. Non standard - You have a physical /files/ folder and you need to work around it.

    We have no way of testing is the install WOULD have worked with /files/ :/ And sadly, it's possible that's one of the problems, and since your host is also a little ignorant about httpd.conf, we can't easily debug THAT either.

    I don't get any error uploading images. It just doesn't show the pic.

    Okay, go into the media panel and look at the image (it's a broken image right?). What's THAT URL?

  22. stvwlf
    Member
    Posted 1 year ago #

    You no longer have a folder names /files/ that contains files in it - the person you hired changed that folder name - is that correct? So no physical folder named /files now exists at the top level of your install - correct?

    You previously changed the standard WP Multisite htaccess code to redirect to the alternate to /files/ that you were using. Did you change that htaccess code back to the default Multisite code using /files/?

    The post generates a url (i.e. http://www.iurisonline.com/en/files/2012/05/agenda-contactos.jpg) which doesn't exist according to FTP.

    Any URL with /files/ in it is NEVER going to exist when viewing files with an FTP program. Files is a virtual folder - it does not exist on disk. It is an alias or link to the actual file location. If you are on the site with the Site Id of 4, the actual image location is http://www.iurisonline.com/en/wp-content/blogs.dir/4/files/2012/05/agenda-contactos.jpg

    /files/ is a WP convention so all sites can use the same /files/ as an alias for the specific files subfolder on their site. Since URL's with /files/ in them are coming up not found, check the htaccess code to make sure /files/ is being redirected to the correct subfolder.

    As far as plugin folder it may well be related to the htaccess issue. But check first to confirm that both /wp-content/ and /wp-content/plugins/ have folder permissions set to 755. That is just for those two folders. Don't change permissions on any files or folders that may be in those two folders.

  23. acollantes
    Member
    Posted 1 year ago #

    You no longer have a folder names /files/ that contains files in it - the person you hired changed that folder name - is that correct? So no physical folder named /files now exists at the top level of your install - correct? YES

    You previously changed the standard WP Multisite htaccess code to redirect to the alternate to /files/ that you were using. Did you change that htaccess code back to the default Multisite code using /files/?

    YES

    Yes, stvwlf, both are correct.

    .htaccess file remains as follows:

    # BEGIN WordPress
    RewriteEngine On
    RewriteBase /
    RewriteRule ^index\.php$ - [L]
    
    # uploaded files
    RewriteRule ^([_0-9a-zA-Z-]+/)?files/(.+) wp-includes/ms-files.php?file=$2 [L]
    
    # add a trailing slash to /wp-admin
    RewriteRule ^([_0-9a-zA-Z-]+/)?wp-admin$ $1wp-admin/ [R=301,L]
    
    RewriteCond %{REQUEST_FILENAME} -f [OR]
    RewriteCond %{REQUEST_FILENAME} -d
    RewriteRule ^ - [L]
    RewriteRule  ^[_0-9a-zA-Z-]+/(wp-(content|admin|includes).*) $1 [L]
    RewriteRule  ^[_0-9a-zA-Z-]+/(.*\.php)$ $1 [L]
    RewriteRule . index.php [L]
    # END WordPress
  24. stvwlf - thank you! I was getting way confused as to what the set up is now.

    Okay. Per what stvwlf said, the actual image location is http://www.iurisonline.com/wp-content/blogs.dir/4/files/2012/05/agenda-contactos.jpg

    What's the site ID for that site? We can look. If THAT URL is working, then the issue is most likely an httpd.conf issue.

  25. acollantes
    Member
    Posted 1 year ago #

    The url shows a weird, plain of errors, version of http://www.iurisonline.com

    I don't understand what you mean by the "site ID", sorry.

    regards,

  26. stvwlf
    Member
    Posted 1 year ago #

    Ipstenu - you know more about Multisite htaccess rewrite code than I do.

    It sure sounds to me like acollantes is having redirection issues, unless its as you said his webhost is just doing something incorrectly.

    Is it certain that the posted htaccess code is correct for his installation?

  27. acollantes
    Member
    Posted 1 year ago #

    And yes. They all have 755 permission

Topic Closed

This topic has been closed to new replies.

About this Topic