WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Multisite links don't work (15 posts)

  1. andrewk714
    Member
    Posted 1 year ago #

    Hello,

    I am helping a friend transfer his multisite (sub-directory) to another server, we transfered his files over, and uploaded his database over to the new server, but when you click on a link is gives a 404 error (I know what that means), so I tried changing the Permalinks to default, and the links worked, but now BuddyPress doesn't work.

    Dose anyone have any suggestions?

  2. Is mod_rewrite turned on for this new server?

    Is there a .htaccess file?

  3. andrewk714
    Member
    Posted 1 year ago #

    Yes, there is a .htaccess file.

    is this what you mean?:
    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /
    RewriteRule ^index\.php$ - [L]

  4. No, I meant is mod_rewrite turned on for your new server - That code just says 'IF it's on, use for this next section...' :)

    What's your complete .htaccess?

  5. andrewk714
    Member
    Posted 1 year ago #

    # BEGIN WordPress
    <IfModule mod_rewrite.c>
    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]
    </IfModule>
    # END WordPress
    
    # Change PHP memory limit, time limit,
    # max post size, and max upload file size
    php_value memory_limit 256M
    php_value max_execution_time 300
    php_value upload_max_filesize 32M
    php_value post_max_size 32M
  6. Unrelated to this issue: Always put WP's htaccess rules at the bottom (it makes your site go through fewer loops).

    Okay, what happens if you remove the .htaccess?

  7. andrewk714
    Member
    Posted 1 year ago #

    If I get rid of the .htaccess, links don't work, no matter what permalinks setting I use.

  8. Not even ugly permalinks?

  9. andrewk714
    Member
    Posted 1 year ago #

    By "ugly" do you mean default? fi so, no not even that works.

  10. Yeah, ugly are the default ?p=123 stuff.

    So no matter what you set things to, BuddyPress won't work, but everything else does? Just want to make sure of something.

  11. andrewk714
    Member
    Posted 1 year ago #

    Yep

  12. Do the BuddyPress pages exist?

    I know the latest version works off of having the BP 'pages' use actual pages in WP.

  13. andrewk714
    Member
    Posted 1 year ago #

    Yes, I know for a fact that the pages are there.

    here is the link to the site: TrueFoodSolutions.com

  14. Switch back pretty permalinks, since if it's just BP, then we can keep that on.

    Can you check your php error log and see if anything shows up?

    Your site is really slow to load for me, by the way.

  15. andrewk714
    Member
    Posted 1 year ago #

    One of the other guys helping with coding, took a look at the .htaccess file and found out that this was causing errors:

    # Change PHP memory limit, time limit,
    # max post size, and max upload file size
    php_value memory_limit 256M
    php_value max_execution_time 300
    php_value upload_max_filesize 32M
    php_value post_max_size 32M

    He said

    Normally, these aren't troublesome commands. It merely allows PHP scripts to use more memory (up to 256MB), take longer to execute, etc. However, on the new server, apparently these values are locked, and we can't change them without errors

    The site is working again......still slow, but that is the server.

    Thank You for you help.

Topic Closed

This topic has been closed to new replies.

About this Topic