• Resolved andrewk714

    (@andrewk714)


    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?

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

    (@ipstenu)

    πŸ³οΈβ€πŸŒˆ Advisor and Activist

    Is mod_rewrite turned on for this new server?

    Is there a .htaccess file?

    Thread Starter andrewk714

    (@andrewk714)

    Yes, there is a .htaccess file.

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

    Moderator Ipstenu (Mika Epstein)

    (@ipstenu)

    πŸ³οΈβ€πŸŒˆ Advisor and Activist

    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?

    Thread Starter andrewk714

    (@andrewk714)

    # 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
    Moderator Ipstenu (Mika Epstein)

    (@ipstenu)

    πŸ³οΈβ€πŸŒˆ Advisor and Activist

    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?

    Thread Starter andrewk714

    (@andrewk714)

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

    Moderator Ipstenu (Mika Epstein)

    (@ipstenu)

    πŸ³οΈβ€πŸŒˆ Advisor and Activist

    Not even ugly permalinks?

    Thread Starter andrewk714

    (@andrewk714)

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

    Moderator Ipstenu (Mika Epstein)

    (@ipstenu)

    πŸ³οΈβ€πŸŒˆ Advisor and Activist

    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.

    Thread Starter andrewk714

    (@andrewk714)

    Yep

    Moderator Ipstenu (Mika Epstein)

    (@ipstenu)

    πŸ³οΈβ€πŸŒˆ Advisor and Activist

    Do the BuddyPress pages exist?

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

    Thread Starter andrewk714

    (@andrewk714)

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

    here is the link to the site: TrueFoodSolutions.com

    Moderator Ipstenu (Mika Epstein)

    (@ipstenu)

    πŸ³οΈβ€πŸŒˆ Advisor and Activist

    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.

    Thread Starter andrewk714

    (@andrewk714)

    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.

Viewing 14 replies - 1 through 14 (of 14 total)
  • The topic ‘Multisite links don't work’ is closed to new replies.