Forums

Sub-Directory Install - Htaccess/wp-admin problem (6 posts)

  1. wakeuphate
    Member
    Posted 7 months ago #

    Hi All,

    I've recently installed the latest stable build of Mu on a windows 2003 server, running apache and the rest of the needed stuff.

    Everything seems to be well, as htaccess works, and is re-writing the urls, and i've tested it seperately too, however when it does, the pages look like they're missing CSS files, and the source of the file on the page is pointing towards theserver/theblog/wp-admin , and it doesnt seem to be re-writing back to theserver/wp-admin. I'm pretty sure htaccess is right and should be re-writing these.. However if i create a folder under theserver/ with the name of the blog, and dump all the original mu files in it, it works perfectly.. but i cant be doing that for every blog created.

    my htaccess is as follows

    RewriteEngine On
    RewriteBase /

    #uploaded files
    RewriteRule ^(.*/)?files/$ index.php [L]
    RewriteCond %{REQUEST_URI} !.*wp-content/plugins.*
    RewriteRule ^(.*/)?files/(.*) wp-content/blogs.php?file=$2 [L]

    # add a trailing slash to /wp-admin
    RewriteCond %{REQUEST_URI} ^.*/wp-admin$
    RewriteRule ^(.+)$ $1/ [R=301,L]

    RewriteCond %{REQUEST_FILENAME} -f [OR]
    RewriteCond %{REQUEST_FILENAME} -d
    RewriteRule . - [L]
    RewriteRule ^/([_0-9a-zA-Z-]+/)?(wp-.*) $2 [L]
    RewriteRule ^/([_0-9a-zA-Z-]+/)?(.*\.php)$ $2 [L]
    RewriteRule . index.php [L]

    <IfModule mod_security.c>
    <Files async-upload.php>
    SecFilterEngine Off
    SecFilterScanPOST Off
    </Files>
    </IfModule>

    I apologise for not being able to provide a link to the troublesome blog, but it's on an internal server, and cant be accessed via the outside world.

    I'd appreciate a bit of help! cheers!

  2. tdjcbe
    Member
    Posted 7 months ago #

    Take a look at the source of the broken blogs. Please provide the url of the css file. Sounds like you've done something instead of installing it in root of where you want the blogs served from.

    I realize you;re on an internal network but if you could provide the actual urls for your network, that also would be a plus. I realize that we can;t view them but something may be up with how you have them. For example, wpmu doesn't work well on a single level TLD. If you have it installed at 'theserver' as the domain, that will cause issues. You need at least a two level domain name, even if it's theserver.tld.

    Please also check your webservers error logs.

    Please make sure you;ve given the following a read. It;s linked to from the readme file and includes information that is always a plus when asking for help.

    http://codex.wordpress.org/Debugging_WPMU

  3. wakeuphate
    Member
    Posted 7 months ago #

    Cheers for the quick response.. Hope this helps a bit more..

    *I'm not using VHost ( using subdirectory install )

    *The full url to the wordpress installs are http://bel1fps06.emea.tsp.ad/ , and when i check, it looks for the CSS at http://bel1fps06.emea.tsp.ad/nameofblog/wp-content/themes/default/style.css

    * Error logs seem to be pretty clean, apart from file missing errors on the CSS file..

    * No browser errors.

    * the info in wp-admin etc all matches up if i create a subfolder with the name of the blog that someone has registered and created, and drop all the root files into it. Thus making me think that it's a rewriting problem. Should .htaccess be reading forward through directories?

    * Latest stable version of Mu

    * Completely stock install, no plugins.

    * Server 2003 - Apache 2.2, php5

    * Tried this on IE and FF, same result.

    * As i said before, to dupe this, it's a matter of going to the admin page and simply visiting the blog, or straight out visiting the blog or its admin page at http://bel1fps06.emea.tsp.ad/blogname/
    http://bel1fps06.emea.tsp.ad/blogname/wp-admin/

    * Give details. Please remember that you're the one seeing the error and many times, you're the only one seeing that error. Folks can't read minds or else they would be in Vegas playing cards instead of trying to help other folks on the Mu forums.

    - Been there, done that, got told to use this page.. :D

  4. andrea_r
    Member
    Posted 7 months ago #

    "* Server 2003 "

    Ah, here's the problem - you need some Windows rewrite rules thingy add-on. :) (specific, I know...)

  5. tdjcbe
    Member
    Posted 7 months ago #

    I politely point out that the poster states that "Everything seems to be well" which I took to mean the blogs and what not are working. So I'm assuming that they have the required rewrite stuff in there. Granted I don't use IIS so it may not be in place.

    Usually when the CSS isn't showing, it;s either a problem with the install being masked in some way like a redirect or 'index.php' or another directory is in there, messing up the urls.

    Although the urls of the theme's css look fine. That is weird. Since it's Windows, I'm going to assume again that it's readable by the webserver. At least that's how XAMPP works for me. If it's on the hard drive, it;s all readable within the webroot.

    Hmmm, I'm at a loss on this one. :(

  6. wakeuphate
    Member
    Posted 7 months ago #

    Everything is working fine, blogs etc, and i'm not using IIS, i'm using Apache 2.2 - what's wrong by the looks of things is the rewrite rules.. because when i goto

    server/blogname/wp-admin

    It doesnt work, unless i drop everything from the root into a folder called blogname.

    however if i make a new folder under the webroot i can run a test rewrite and it works fine seperate to wordpress mu, so it's not an apache issue by the looks of things...

Reply

You must log in to post.

About this Topic