The MU forums have moved to WordPress.org

.htaccess file (2 posts)

  1. CoreyCampbell
    Member
    Posted 15 years ago #

    Alright I'm almost 100% sure that what is messing my site up is the .htaccess file.

    What I have is:
    RewriteEngine On
    RewriteBase /blog/
    # RewriteBase /blog/
    RewriteRule . /blog/ [L]

    # 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]

    Now my problem comes in when I try to navigate to http://mydomain/blog/index.php

    It automatically forwards me to http://www.mydomain.com

    No idea why. I'm not good with the mod_rewrite and .htaccess stuff. This prevents me from reaching my wordpressmu site.

    Any help?

  2. drmike
    Member
    Posted 15 years ago #

    Is that what wpmu installed for you or have you changed it at all?

About this Topic

  • Started 15 years ago by CoreyCampbell
  • Latest reply from drmike