Viewing 13 replies - 1 through 13 (of 13 total)
  • Moderator Ipstenu (Mika Epstein)

    (@ipstenu)

    ?????? Advisor and Activist

    It should be https://site.com/blog/2011/07/05/hello-world/ though, not /site1/blog ….

    It goes like this

    Site1: https://site.com/
    Site1 posts: https://site.com/blog/2011/07/05/hello-world/

    Site 2: https://site.com/site2/
    Site 2 posts: https://site.com/site2/?p=1

    And you’re on IIS, so you need to set up the web.config file to work with pretty permalinks.

    Thread Starter matt1005

    (@matt1005)

    I’m not running IIS, I’m running Apache on CentOS.

    I understand that the links *should* be different, but that’s why I created this post in the forum. Default install of multi-site on WordPress 3.2 breaks permalinks. They simply don’t work correctly.

    After installing Multi-site, when I click on a link for a blog post, it throws the Not Found error. So obviously something is wrong.

    Moderator Ipstenu (Mika Epstein)

    (@ipstenu)

    ?????? Advisor and Activist

    What’s in your .htaccess?

    I just spun up a test site without any issues.

    Thread Starter matt1005

    (@matt1005)

    Weird,

    RewriteEngine On
    RewriteBase /site1/
    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]

    Moderator Ipstenu (Mika Epstein)

    (@ipstenu)

    ?????? Advisor and Activist

    Why is RewriteBase /site1/ in there?

    Unless you installed WordPress in the physical FOLDER named site1, it SHOULD be

    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]

    Thread Starter matt1005

    (@matt1005)

    I literally copied the code from the Settings > Network Setup during the installation process and pasted into the .htaccess file.

    In other words I didn’t change anything and I didn’t have an .htaccess file previously because this was a test.

    On the filesystem, the blog is installed at:

    /var/www/html/site1/

    If you installed it at /var/www/html/site1/, then your sites will be domain.com/site1/site2/.

    Thread Starter matt1005

    (@matt1005)

    From my experiences, each instance of WP is installed at the web root:

    /var/www/html

    Thus

    /var/www/html/site1/
    /var/www/html/site2/

    The dashboard for each instance is:

    https://site.com/site1/wp-admin
    https://site.com/site2/wp-admin

    Moderator Ipstenu (Mika Epstein)

    (@ipstenu)

    ?????? Advisor and Activist

    That’s not how MultiSite works.

    Install at /var/www/html

    Site #1: site.com
    Site #2: site.com/site2

    And so on and so forth.

    There’s only ONE install of WP and it’s in /html, so the domain starts at site.com. If you installed in /var/www/html/site1 then your URL starts at site.com/site1

    But you don’t ever reinstall in /site2

    Yes, but if you installed it from /site1/ and it looks liek you did because that;s the base valeu – then URLs are built from that

    Remember with multisite, you won’t have physical folders called /site1/ etc. It will be the install in /var/www/html where you enable multisite.

    Thread Starter matt1005

    (@matt1005)

    *sigh* thanks for trying to help. I suppose I’m not explaining things thoroughly enough. That’s my fault. I’m rushing through my responses.

    Moderator Ipstenu (Mika Epstein)

    (@ipstenu)

    ?????? Advisor and Activist

    Yeah, a rewind may be in order here ??

    So okay.

    1) Where on your server is your wp-config.php file?

    2) When you set up multisite, you used subfolders, correct?

Viewing 13 replies - 1 through 13 (of 13 total)
  • The topic ‘Multisite on 3.2 breaks permalinks’ is closed to new replies.