The MU forums have moved to WordPress.org

Error 404 (13 posts)

  1. jprl12
    Member
    Posted 19 years ago #

    Hi!

    I tried to install the WPMU on my server. I can see a blog : http://jprl12.barchezmo.com/ but when I try to see a post like here : http://jprl12.barchezmo.com/2006/11/30/test/ I get a error 404 ...

    I installed the script here : http://barchezmo.com/wpmu/

    In the wp-config.php file, at the line 8, the base variable is "$base = '/';"

    After that, my .htaccess :
    ----
    RewriteEngine On
    RewriteBase /

    # Rewrite http://www.domain.com to domain.com
    RewriteCond %{HTTP_HOST} ^www\.(.*)
    RewriteRule ^(.*) http://%1/$1 [R,L]

    #uploaded files
    RewriteRule ^(.*)?/?files/(.*) wp-content/blogs.php?file=$2 [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]
    ----

    I hope that you will help me!

    Thanks!
    Jean-Philippe

  2. frayquantum
    Member
    Posted 19 years ago #

    did you try pinting $base to the physical directory of the wpmu installation?

  3. jprl12
    Member
    Posted 19 years ago #

    I don't really understand something... I don't change any files, but now, when I create a new blog, everything is ok... http://test02.barchezmo.com/2006/12/01/hello-world/

    But, the principal blog of the WPMU admin : http://barchezmo.com/wpmu/ have somes errors... by example : http://barchezmo.com/wpmu/blog/2006/11/16/hello-world/ How I can fix that ?

    And, my last question... I installed WPMU in the subfolder here : http://barchezmo.com/wpmu/ But, when a user create a blog, the URL is http://john.barchezmo.com/wpmu/ But, http://john.barchezmo.com/ work also ... How I can delete WPMU/ in the URL of the blog ?

    Thanks,
    JP

  4. jprl12
    Member
    Posted 19 years ago #

    nobody have a ideas?

  5. jprl12
    Member
    Posted 19 years ago #

    Please, help me... I would have liked to offer this service to my members for the ninth birthday of my site...

  6. lunabyte
    Member
    Posted 19 years ago #

    Since it's a new install, without users, wipe it, and reinstall it to the root of the domain, and not in a subdirectory.

    After that, all will be well.

  7. jprl12
    Member
    Posted 19 years ago #

    I can't install it in the root directory... I have always a normal WP blog here...

  8. lunabyte
    Member
    Posted 19 years ago #

    Well, unfortunately, there lies your problem.

    If you can't install it in the root of your site, then it's always going to have the subdirectory in the url. There isn't a magic option that can really change that, because that's where it's installed.

    Redirecting to the root with htaccess isn't going to do anything but point it to your main WP install, which won't have a clue what to do with the request, so you get a 404.

    So, you'll either have to move your main blog into MU, and use MU in the root directory vice regular WP, or live with the subdirectory.

    Granted you could always install it on a subdomain as your primary MU domain, such as blogs.yourdomain.tld, but then you would have urls that are 4 levels deep if you use the subdomain option. They would look like username.blogs.yourdomain.tld as an example.

    In that case, you could install it to a subdomain like above, but not use the subdomain option, so the urls would look like blogs.yourdomain.tld/username/ instead.

    So this really isn't a software problem, it's just how you have it configured/set-up.

    If it's in a subdirectory, it's going to be in the url.

    Granted you could get really fancy with php and whatnot, move everything but your index.php file of your standard WP install into a subdirectory, temporarily disable your main site, install MU into the root directory, and the put in some checks in php and see what the domain comes up as. If it's for your primary WP install, have it include the blog header file in the directory for the standard WP install, and if it's not the main domain site, then include the MU related file (in the root directory) instead.

    However, that may be over your head to pull off. Since I don't know your skill level, that's why I mentioned it. As a note, I haven't even thought of testing a setup like that, so the above reference is in theory only, and I don't warrant or guarantee my ramblings usefulness for any purpose. :D

  9. andrea_r
    Moderator
    Posted 19 years ago #

    Or he could just back up his current WP install, install MU in the root and import his current WP setup into the main MU blog. Would be the simplest solution.

  10. lunabyte
    Member
    Posted 19 years ago #

    Aww... what's the fun in that? :D

  11. andrea_r
    Moderator
    Posted 19 years ago #

    Hee! :D

  12. jprl12
    Member
    Posted 19 years ago #

    Thanks a lot for your answers!

    The problem with my normal WP blog, it's the XML file... The file size is 44.3Mo ... My browser and server will not accept the upload of this file from the form of WP import... Do you have a another solution for import my normal WP to WPMU ?

    JP

  13. andrea_r
    Moderator
    Posted 19 years ago #

    Do a MySQL dump, then before you import it into MU's database, rename the table prefixes.

About this Topic